3
Because, in the PHP
, some predefined constants are case-insensitive
(do not differentiate capital letters from minuscules) and others 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 there is an error, in the first case there is no error!
Just genius!!!! I didn’t know there was a third parameter in
define
!. Just like it happened withisset
: I didn’t know there could be more than one parameter– Wallace Maxters
But now, here for us, PHP has given a knife. Because what will be the constants defined by the keyword
const
?– Wallace Maxters
Gets very confused just already with the defines
– Ricardo
releases a translation for us :)
– Wallace Maxters
It would be good to put the command syntax as well, so we don’t depend on the link to understand the answers (the lifetime of the OS is much longer than any other XD site)
– SparK