note 34492 deleted from control-structures.elseif by didou
| From: | didou@php.net | Date: | Tue, 29 Jul 2003 07:35:38 +0000 |
| Subject: | note 34492 deleted from control-structures.elseif by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52885@lists.php.net to get a copy of this message | ||
Note Submitter: Matt AKA junkie
----
Although it is deprecated (sp?), you can use elseif like this:
if (whatever) {
yeah...
} else if (yum) {
hey, this works too!
} elseif (this) {
this is best to use
} else {
boo hoo no matches :(
}
Not sure on the exact PHP versions that support this, but it does indeed work.