For example, is the following program meaningful, and if so what should it print?
No. Keywords are case-insensitive. Lerdorf et al., Programming PHP, page 17:
The names of user-defined classes and functions, as well as built-in constructs and keywords such as
echo
,while
,class
, etc., are case-insensitive. Thus, these three lines are equivalent:echo("hello, world"); ECHO("hello, world"); EcHo("hello, world");
Case sensitive (both user defined and PHP defined)
Case insensitive (both user defined and PHP defined)