note 32676 deleted from control-structures.break by sp
| From: | sp@php.net | Date: | Sat, 26 Jul 2003 07:39:12 +0000 |
| Subject: | note 32676 deleted from control-structures.break by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52689@lists.php.net to get a copy of this message | ||
Note Submitter: Bernard Blundell
----
> Just an insignificant side not: Like in C/C++, it's not
> necessary to break out of the default part of a switch
> statement in PHP.
That's complete hogwash. It's commonplace to put the default: at the end of the list, so
it happens to work. If you have any other cases after the default, you *will* get
"fallthrough" behaviour, just like you do in C and C++.