At 2:23 PM -0400 9/24/10, Bob McConnell wrote:
A switch works when a single test can dispatch all possible branches. If
you have a series of tests where each looks for a different subset of
conditions, you need an elseif.
Not so, O'wise one.
This will work:
case $a > $b:
case $c == 1:
case $d == 'this works':
Granted, it's not the normal way a switch works in some other
languages, but it does work in PHP. :-)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php