Skip to content

Instantly share code, notes, and snippets.

@spectrox
Last active December 17, 2015 02:48
Show Gist options
  • Save spectrox/5538366 to your computer and use it in GitHub Desktop.
Save spectrox/5538366 to your computer and use it in GitHub Desktop.
PHP: difference between true and TRUE
$ php -a
php > define('true', false);
PHP Notice: Constant true already defined in php shell code on line 1
php > define('TRUE', false);
php > echo true;
1
php > echo TRUE;
php >
$ php -r 'define("TRUE", "asd");echo TRUE;'
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment