note 36694 added to control-structures.switch

From: Date: Sun, 19 Oct 2003 02:22:00 +0000
Subject: note 36694 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-58864@lists.php.net to get a copy of this message
being a newbie i'm not sure if it's obvious, but you can also use any variables in the case statements such as switch ($a){ case 1: echo "$a is 1"; case ($b>=10): echo "$b is larger than or equal to 10"; } ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36694 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36694&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36694&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58864) next »