When I was learning PHP, I read somewhere that you should always use the upper case versions of booleans, TRUE
and FALSE
, because the "normal" lowercase versions, true
and false
, weren't "safe" to use. This applies to NULL
and null
as well.
It's now been many years, and every PHP script I've written uses the uppercase version. Now, though, I am questioning that, as I have seen plenty of PHP written with the lowercase version (i.e. Zend Framework).
Is/Was there ever a reason to use the uppercase version, or is it perfectly OK to use the lowercase?