note 24937 added to control-structures.switch

From: Date: Thu, 05 Sep 2002 12:45:12 +0000
Subject: note 24937 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-36165@lists.php.net to get a copy of this message
What's the syntax if I want to do something in case the swithced value falls between two values: <pre> switch ($i) { case BETWEEN 1 AND 12: SOMETHING; break; case 13: SOMETHING; break; case 14: SOMETHING; break; } </pre> -- http://www.php.net/manual/en/control-structures.switch.php http://master.php.net/manage/user-notes.php?action=edit+24937 http://master.php.net/manage/user-notes.php?action=delete+24937 http://master.php.net/manage/user-notes.php?action=reject+24937

« previous php.notes (#36165) next »