note 32387 added to control-structures.alternative-syntax

From: Date: Mon, 26 May 2003 14:10:43 +0000
Subject: note 32387 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-49032@lists.php.net to get a copy of this message
why isnt it possible to switch using < and > like switch ($i) { case <10: echo "blah"; case <20: echo "blubb"; case >20: echo "nah"; } this worked in basic hundred years ago :( how to handle things like that better then using if? ---- 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+32387 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32387&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32387&report=yes

« previous php.notes (#49032) next »