case sensitivity Archives - LoudProgrammer

Tag: case sensitivity

PHP Tutorials – Case Sensitivity in PHP

PHP, Tutorials
In PHP, key words are case insensitive whereas variable names are case sensitive. Create an empty text file in your server root directory and save it as casesensitivity.php  and then include the following code in it. <!DOCTYPE html> <head> <title>Case Sensitivity </title> </head> <body> <?php ?> </body> </html> Key words like echo  that represents a function that prints a text string to the browser are case insensitive. This means that you can use them in either upper case or lower case or a mix of both and the outcome of the statement would be the same. In the example below, we use the echo statement in different cases to print out a text string to the browser and the output is the same. <!D...