What's the difference between those PHP if expressions!?
if ($var !== false)
{
// Do something!
}
if (false !== $var)
{
// Do something!
}
Some frameworks like Zend Framework uses the latest form while the traditional is the first.
Thanks in advance
if ($var = false)
is the same as$var = false; if ($var)
. Ergo, it will always evaluate to false. – Mario