note 71012 added to control-structures.break

From: Date: Wed, 08 Nov 2006 08:07:12 +0000
Subject: note 71012 added to control-structures.break
Groups: php.notes 
Request: Send a blank email to php-notes+get-119506@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." --Yes it is, it's just that traditionally default: is the last entry of a switch and so nothing happens after. -If it was, for whatever reason, not the last entry the script would bawk, there is no implicit break; associated with switch. ---- Server IP: 216.194.113.175 Probable Submitter: 221.243.221.74 ---- Manual Page -- http://www.php.net/manual/en/control-structures.break.php Edit -- https://master.php.net/note/edit/71012 Del: integrated -- https://master.php.net/note/delete/71012/integrated Del: useless -- https://master.php.net/note/delete/71012/useless Del: bad code -- https://master.php.net/note/delete/71012/bad+code Del: spam -- https://master.php.net/note/delete/71012/spam Del: non-english -- https://master.php.net/note/delete/71012/non-english Del: in docs -- https://master.php.net/note/delete/71012/in+docs Del: other reasons-- https://master.php.net/note/delete/71012 Reject -- https://master.php.net/note/reject/71012 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119506) next »