Dear All I have one strange issue in the switch code Fist I have two PCs with AppServ and two web sites each one of them in different company now I created one page called test.php and I put in side it a simple switch code from php.net <?php switch ($i) { case "apple": echo "i is apple"; break; case "bar": echo "i is bar"; break; case "cake": echo "i is cake"; break; } ?> PHP: i copyed the page to my 2 PCs and the web sites when I run the page .../test.php?i=apple one of the PC its working fine I can see the out put [i is bar] but in the ather PC i can't. also one of the web sites its working and in the other its not all of them are using PHP5+ Strange right --------- notes that i wrote ones <?php echo $; switch ($i) { case "apple": echo "i is apple"; break; case "bar": echo "i is bar"; break; case "cake": echo "i is cake"; break; } ?> PHP: .../test.php?i=apple and there is no output please help
also I made one case as its null case "": echo "i is null"; break; PHP: and win i run the page .../test.php?i=apple but its print the null case... so the $i didn't take the apple why