note 70457 added to control-structures.elseif
| From: | php-general at lists dot php dot net | Date: | Tue, 17 Oct 2006 15:28:34 +0000 |
| Subject: | note 70457 added to control-structures.elseif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118618@lists.php.net to get a copy of this message | ||
Well as i noticed the else if is very useful in some cases:
<?
if($myvar == "" ) // this is true
{
echo "Loading function...";
}
else
{
echo "Loading function... ERROR";
}
?>
----
Server IP: 66.163.161.117
Probable Submitter: 89.212.27.218
----
Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php
Edit -- https://master.php.net/note/edit/70457
Del: integrated -- https://master.php.net/note/delete/70457/integrated
Del: useless -- https://master.php.net/note/delete/70457/useless
Del: bad code -- https://master.php.net/note/delete/70457/bad+code
Del: spam -- https://master.php.net/note/delete/70457/spam
Del: non-english -- https://master.php.net/note/delete/70457/non-english
Del: in docs -- https://master.php.net/note/delete/70457/in+docs
Del: other reasons-- https://master.php.net/note/delete/70457
Reject -- https://master.php.net/note/reject/70457
Search -- https://master.php.net/manage/user-notes.php