Is there anyway to make it so that the following code still uses a switch and returns b not a? Thanks!
b
a
$var = 0; switch($var) {
Switch statement in php does loose comparisons only (==) see http://www.php.net/manual/en/control-structures.switch.php
Use if/elseif/else if you need strict comparisons.