note 34492 added to control-structures.elseif

From: Date: Tue, 29 Jul 2003 07:33:53 +0000
Subject: note 34492 added to control-structures.elseif
Groups: php.notes 
Request: Send a blank email to php-notes+get-52883@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34492 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34492&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34492&report=yes

« previous php.notes (#52883) next »