Hi All,
Why doesn't the For Loop output the array "rabbit"? Here is the code :
<html>
<title> Hello World Script </title>
<body>
<?php
$Name="Joe Blogg";
$a=a;
$b=b;
$rabbit[0]="Test";
$rabbit[1]="The";
$rabbit[2]="Array";
echo "Hello World";
echo "<p> My name is "."$Name </p>";
echo $a." ".$b;
echo "$rabbit[0] $rabbit[1] $rabbit[2]";
echo "<p>";
for ($i=1;$i<13;$i++)
{
echo "\n Multiply by $i : ";
echo "<p>";
for($e=1;$e<13;$e++)
{
$result = $i * $e;
echo "$i x $e = $i * $e";
echo "<p>";
}
}
for ($p=0;$p<3;$p++)
{
echo $rabbit[p];
}
?>
</body>
</html>