Testing Variables
| From: | Gerard Samuel | Date: | Thu, 02 Oct 2003 03:23:28 +0000 |
| Subject: | Testing Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164672@lists.php.net to get a copy of this message | ||
I've noticed code written in this order ->
if (FALSE === $foo)
{
// yada yada
}
Is there a reason/benefit to test variables like that instead of ->
if ($foo === FALSE)
{
// yada yada
}
Thanks