What's the difference between those PHP if expressions!?
Posted
by SolidSnakeGTI
on Stack Overflow
See other posts from Stack Overflow
or by SolidSnakeGTI
Published on 2010-04-21T13:31:56Z
Indexed on
2010/04/21
13:33 UTC
Read the original article
Hit count: 221
Hello,
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
© Stack Overflow or respective owner