Comparisons screwed up
| From: | Sascha Schumann | Date: | Mon, 03 Jan 2000 04:42:06 +0000 |
| Subject: | Comparisons screwed up | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8820@lists.php.net to get a copy of this message | ||
$action must not be initialized. The following script prints
bad twice.
<?
if($action == "foo")
echo bad;
else
echo good;
echo "\n";
switch($action) {
case "foo":
echo bad;
break;
default:
echo good;
}
echo "\n";
--
Regards,
Sascha Schumann
Consultant