Noob learning to become a Web developer here. On a PHO module of my study course right now and hitting a bit of a bug.
Anyone able to explain to me why unset($name); is causing an error message to get thrown?
Any help would be greatly appreciated :)
<?php
$myArray=array("pizza","chocolate","coffee");
print_r($myArray);
echo $myArray[1];
echo "<br /><br />";
$anotherArray[0]="pizza";
$anotherArray[1]="yoghurt";
print_r($anotherArray);
echo "<br /><br />";
$thirdArray=array(
"France" => "French",
"USA" => "English",
"Germany" => "German",
);
print_r($thirdArray);
$anotherArray[]="salad";
echo "<br /><br />";
print_r($anotherArray);
echo "<br /><br />";
unset($thirdArray["Germany"]);
print_r($thirdArray);
echo "<br /><br />";
$name="Rob";
unset($name);
echo $name;
?>