Because in PHP
, some predefined constants are case-insensitive
(they are not case sensitive) and some are not?
Example 1:
echo __FILE__; // index.php
echo __file__; // index.php
echo __fiLE__; // index.php
Example 2:
echo PHP_EOL; \n
echo php_eol; // Use of undefined constant php_EOL - assumed 'php_eol'
echo php_EOL; // Use of undefined constant php_EOL - assumed 'php_EOL'
As you can see, in the last case it generates an error, it does not generate any errors in the first one!