php - TRUE or true difference?

php

Solution

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.

Problem

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?

Original source

Related problems