weird switch behaviour
| From: | cg | Date: | Wed, 18 Jun 2003 13:18:06 +0000 |
| Subject: | weird switch behaviour | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152606@lists.php.net to get a copy of this message | ||
I am testing a var in a switch statement,
switch($type)
{
case "HIRE":
statements;
break;
etc....
default:
echo "In Default";
break;
}
I can echo $type directly above the switch statement, confirm it contains
the string "HIRE", but the switch takes the default every time!!
what is going on??
thanks