Re: Boolean type forced on string assignment inside if statement
| From: | Marc Guay | Date: | Thu, 03 Jan 2013 16:49:50 +0000 |
| Subject: | Re: Boolean type forced on string assignment inside if statement | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320008@lists.php.net to get a copy of this message | ||
Hi John,
I just ran this:
if (($a = "foo") || ($b = "bar")){
echo $a."<br />".$b;
}
and it only spat out "foo" so I'm guessing things have changed. :)
Marc