note 103395 deleted from control-structures.switch by danbrown
| From: | danbrown@php.net | Date: | Tue, 12 Apr 2011 13:37:10 +0000 |
| Subject: | note 103395 deleted from control-structures.switch by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178767@lists.php.net to get a copy of this message | ||
Note Submitter: torm3nt at me dot com
----
@hamiltont at gmail dot com:
That will always result in a 2 - because default is always executed in a switch statement unless the
parser reaches a break before a default. Your logic is fallible.