note 51552 deleted from control-structures.switch by betz

From: Date: Mon, 04 Apr 2005 08:59:29 +0000
Subject: note 51552 deleted from control-structures.switch by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87418@lists.php.net to get a copy of this message
Note Submitter: jaw0121 at unt dot edu ---- In response to akeel_din at sbcglobal dot net, who said: "In the example, age <= 69, age is <= 29 and age <= 21 will all be true for someone who is 20. Should have an age range check in the case(...)" I'm a bit confused by what you mean. If someone is 20, the first case statement evaluates properly and the switch statement is broken out of. Therefore, the remaining case statements, while technically true, are never evaluated...

« previous php.notes (#87418) next »