switch & continue statements

From: Date: Sun, 24 Feb 2002 03:13:41 +0000
Subject: switch & continue statements
Groups: php.general 
Request: Send a blank email to php-general+get-86174@lists.php.net to get a copy of this message
Hello, I'm not sure if this is a newsgroup, list or direct e-mail address. In any case, I ask of anybody who can answer my question to *send me an e-mail* at mcpatulc@caramail.com, and not answer on the list/newsgroup/etc. (Thank you.) My question is the following: When having a switch statement as follows: switch($value) { case something: if(condition) { do_my_stuff; } else { continue; } case something_else: do_my_other_stuff; default: show_error_message; } Does the continue continue on evaluating (and comparing) $value to the case statements, or does it give control to the default: statement? Simpler put: Does a "continue" statement within a "switch" statement pass control to that "switch" statement's "default:" section? Thanks, KAT44 _________________________________________________________ Le journal des abonnés Caramail - http://www.carazine.com

« previous php.general (#86174) next »