note 90044 deleted from control-structures.switch by danbrown

From: Date: Thu, 02 Apr 2009 21:08:52 +0000
Subject: note 90044 deleted from control-structures.switch by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152776@lists.php.net to get a copy of this message
Note Submitter: m dot skoric at web dot de ---- In reply to mar dot czapla at gmail dot com <?php /* script 1 */ $foo = "not a number"; switch(false) { case "1": { $foo = "1"; break; } case "2": { $foo = "2"; break; } default: { $foo = "0"; } } ...omitted ?> your code doesn't produce the output in release 5.2.8 as you mentioned. Output is 001. The first to switch-case stmts end in the default block! Which php version do you have?

« previous php.notes (#152776) next »