Jon Hill wrote:
I am sure I read somewhere that doing the following
if (false === $variable)
was a better option than
if ($variable === false)
maybe it was a dream or is there something in this?
=== is type-safe comparison (iirc)
== is not type-safe
= is assignment (obviously)
if ($variable
Jon Hill wrote:
I am sure I read somewhere that doing the following
if (false === $variable)
was a better option than
if ($variable === false)
maybe it was a dream or is there something in this?
Jon
The later will give error if you mistakenly use single =, which can
spare you frustration whe
2 matches
Mail list logo