note 59827 rejected from control-structures.elseif by nlopess

From: Date: Fri, 16 Dec 2005 22:36:24 +0000
Subject: note 59827 rejected from control-structures.elseif by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100323@lists.php.net to get a copy of this message
Note Submitter: jaimemontoya at gmail dot com ---- 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.

« previous php.notes (#100323) next »