note 14437 added to control-structures.elseif.php
| From: | game__over at hotmail dot com | Date: | Tue, 31 Jul 2001 13:58:24 +0000 |
| Subject: | note 14437 added to control-structures.elseif.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16100@lists.php.net to get a copy of this message | ||
if ('$l == 1') { $Sdm = 'Yule the Second'; }
elseif ('$l == 2') { $Sdm = 'Afteryule the 1st'; }
elseif ('$l == 3') { $Sdm = 'Afteryule the 2nd'; }
elseif ('$l == 4') { $Sdm = 'Afteryule the 3rd'; }
elseif ('$l == 5') { $Sdm = 'Afteryule the 4th'; }
elseif ('$l == 6') { $Sdm = 'Afteryule the 5th'; }
I have a problem with more than on elseif going right to the bottom one and I dont know why
http://www.php.net/manual/en/control-structures.elseif.php