Php program to print the constant with case sensitive

A Php program to print the constant with case sensitive. Using this program we print the constant with case sensitive letters in php. A constant is a term that identifies a single value. During the script, the value cannot be altered. A valid constant name begins with a letter or underscore and does not include the $ sign.

define("information", "Welcome to");
echo information;



Welcome to

What is case sensitive in php

Variable and constant names in PHP are case sensitive, although function names aren’t. PHP is the only language that I am aware of that does this. All of the other languages I’ve tried are either case insensitive or case sensitive. Although class and function/method names are case-insensitive in PHP, it is best practise to use them exactly as they appear in their declaration.

What is define in php

A constant is defined with the define() function. Constants are similar to variables, with the following exceptions: The value of a constant cannot be modified once it has been set. A leading dollar symbol ($) is not required for constant names. Regardless of scope, constants can be accessed.