note 30835 added to control-structures.elseif
| From: | cp1967 at techie dot com | Date: | Tue, 01 Apr 2003 00:04:54 +0000 |
| Subject: | note 30835 added to control-structures.elseif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46032@lists.php.net to get a copy of this message | ||
This function works well if you want to identify something to do for a couple of conditions, and the
remainder, you want to do nothing with.
Ex.
if($a == a){
print "yes";
}elseif($a == b){
print "no";
}else{
// if $a != a AND $a != b
print "who cares";
}
--
http://www.php.net/manual/en/control-structures.elseif.php
http://master.php.net/manage/user-notes.php?action=edit+30835
http://master.php.net/manage/user-notes.php?action=delete+30835
http://master.php.net/manage/user-notes.php?action=reject+30835