note 49224 added to control-structures.switch

From: Date: Thu, 20 Jan 2005 19:47:25 +0000
Subject: note 49224 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-83690@lists.php.net to get a copy of this message
A formal definition would be good here of what it means when one does: switch($x){ case [expression]: /* code */ break; } What meaning, if any, is given to $x and/or the return value of the expression? It's not at all clear from the trivial examples which all use constants how one is supposed to employ expressions in the case part... ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49224 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49224&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49224&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49224&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49224&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49224&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49224&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83690) next »