So I have this simple code on my site that goes like this:
$house = array("Red","Ornange","Yellow","Blue");
foreach ($house as $key) {
echo " " . $key . " :: <br>";
}
But Instead of displaying, "
Red ::
Orange ::
Yellow ::
Blue ::
"
It is displaying as, "
Array ::
Array ::
Array ::
Array ::
".
Why is it doing this and how do I fix it? I tried going
$house[0] = "Red";
$house[1] = "Orange";
$house[2] = "Yellow";
$house[3] = "Blue";
But that did not help. Thank you in advanced.