note 4933 modified in Control Structures by ronabop
| From: | ronabop@php.net | Date: | Fri, 01 Sep 2000 02:31:28 +0000 |
| Subject: | note 4933 modified in Control Structures by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3832@lists.php.net to get a copy of this message | ||
As far as checking multiple values at once:
<pre>
if ($a==1 || $b==1){
// Code for if $a or $b is equal to 1
}
<pre>
<Br>
or you can use && instead of || - see the section, I believe, on operands and so on.
http://www.php.net/manual/control-structures.php