note 123317 rejected from control-structures.switch by cmb
| From: | cmb@php.net | Date: | Thu, 08 Nov 2018 11:10:05 +0000 |
| Subject: | note 123317 rejected from control-structures.switch by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209644@lists.php.net to get a copy of this message | ||
Note Submitter: andrey dot majoroff at gmail dot com
----
Is switch/case working only with echo?
why it can't do something like this:
switch ($e)
{
case 1:
$v = 100;
case 2:
$v = 200;
}
or maybe another code but not only echo or print. Thanks.