少し古い質問ですが、こちらが参考になるかと。
PHPで真偽型を記述する時には必ず大文字を使うべきなのでしょうか?
実験が面白かったです。
実験の結果が 8.0 で変わっているので記述しておきますね。
php
1<?php
2 define('TRUE', 2); echo "TRUE: ".TRUE."\n";
3 define('True', 3); echo "True: ".True."\n";
4 define('true', 4); echo "true: ".true."\n";
5 define('FALSE', 5); echo "FALSE: ".FALSE."\n";
6 define('False', 6); echo "False: ".False."\n";
7 define('false', 7); echo "false: ".false."\n";
PHP Version => 8.0.9
PHP Warning: Constant TRUE already defined in /workspace/Main.php on line 2
PHP Warning: Constant True already defined in /workspace/Main.php on line 3
PHP Warning: Constant true already defined in /workspace/Main.php on line 4
PHP Warning: Constant FALSE already defined in /workspace/Main.php on line 5
PHP Warning: Constant False already defined in /workspace/Main.php on line 6
PHP Warning: Constant false already defined in /workspace/Main.php on line 7