Re: if(($var && $var < $othervar)
| From: | Matthew Leverton | Date: | Thu, 15 Jun 2000 19:30:52 +0000 |
| Subject: | Re: if(($var && $var < $othervar) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1996@lists.php.net to get a copy of this message | ||
>
>The expression: "if ($a && $a) {" would mean "if $a is greater
>than zero and $a is greater than zero".
>
err, I mean unequal to Zero.
Be the same as "if ($a != 0 && $a != 0) {" (assuming $a is an integer)
And again, correct me if this is not how PHP works.
--
Matthew Leverton - matthew@aeroinc.net -
http://www.allegro.cc