note 32676 added to control-structures.break

From: Date: Wed, 04 Jun 2003 10:13:01 +0000
Subject: note 32676 added to control-structures.break
Groups: php.notes 
Request: Send a blank email to php-notes+get-49700@lists.php.net to get a copy of this message
> 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++. ---- Manual Page -- http://www.php.net/manual/en/control-structures.break.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32676 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32676&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32676&report=yes

« previous php.notes (#49700) next »