I'm wondering, in PHP, I've seen people use both these cases:
if($var === TRUE) if($var === true) is there an actual difference between them or a coding standard/format to be used in boolean value?
There's no difference at all. From the docs:
To specify a boolean literal, use the keywords TRUE or FALSE. Both are case-insensitive.
According to PSR-2, as stated by both Laxus and Paul Bain in their comments, the standard is to write them in lower case.
TrueandFalse, while in C++ you defineTRUEandFALSEas constants assigned to 1 and 0 (if you don't already usestdbool.hand obey the "constants should be uppercase" rule).