note 35574 added to control-structures.alternative-syntax

From: Date: Sat, 06 Sep 2003 10:27:55 +0000
Subject: note 35574 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-55538@lists.php.net to get a copy of this message
There is an other alternative syntax: <?php if ($a > 5) { echo "big"; } else { echo "small"; } ?> can be replaced by: <?php echo $a > 5 ? "big" : "small"; ?> ---- Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35574 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35574&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35574&report=yes

« previous php.notes (#55538) next »