I'm currently learning php and am playing around with statements at the moment. I've typed some code but when it's accessed the page is blank. Would somebody mind taking a look at it for me please and let me know what i'm doing wrong?
Here's the code:
<html>
<head>
<title>Logical Expressions:Switch/title>
</head>
<body>
<?php $a = 3; ?>
<?php
switch ($a) {
case 0:
echo "a equals 0";
break;
case 1:
echo "a equals 1";
break;
case 2:
echo "a equals 2";
break;
default:
echo "a is not 0,1 or 2";
break;
}
?>
</body>
</html>Thanks for looking.
Gary
Help
















