note 59827 added to control-structures.elseif
| From: | jaimemontoya at gmail dot com | Date: | Fri, 16 Dec 2005 22:34:09 +0000 |
| Subject: | note 59827 added to control-structures.elseif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100322@lists.php.net to get a copy of this message | ||
I only want to say that the code has an error in the example for "elseif". The right code
should be:
<?
$a=1;
$b=2;
if ($a > $b) {
print "a es mayor que b";
} elseif ($a == $b) {
print "a es igual que b";
} else {
print "a es menor que b";
}
?>
In line 9 you wrote:
print "a es mayor que b";
And line 9 should be:
print "a es menor que b";
May you correct it please? Thank you.
----
Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59827
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59827&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59827&report=yes
Search -- http://master.php.net/manage/user-notes.php