PHP Case Sensitivity

Basically names of user-defined functions, classes, built-in constructs and keywords such as echo, while, class, etc., are case-insensitive. However; variables on the other hand, are case-sensitive.

PHP Case Sensitivity Example 1

In the example below, all three echo statements below are legal (and equal):

PHP Case Sensitivity Example 2

However; variables on the other hand, are case-sensitive. That is, $variable, $VARIABLE, $VariaBle and $VAriable are four different variables.

This will produce following result