note 49224 deleted from control-structures.switch by nlopess
| From: | nlopess@php.net | Date: | Thu, 20 Jan 2005 20:27:13 +0000 |
| Subject: | note 49224 deleted from control-structures.switch by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83693@lists.php.net to get a copy of this message | ||
Note Submitter: ceo at l-i-e dot com
----
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...