5. Iterating Over Associative Arrays Problem


#1

Hi. I have "permission" from codecademy to pass the assignment, but this is shown in the "browser window":
Parse error: syntax error, unexpected T_FOREACH, expecting ',' or ';' on line 39

Anyone who know how to fix this?
This is my code:

$bands = array("Band1" => "Kashmir",
"Band2" => "Dizzy Mizz Lizzy",
"Band3" => "DAD");

 echo "I hear this danish bands:"

 foreach ($bands as $bandNum=>$bandName) {
     echo "My " . $bandNum . " is " . $bandName . ". "; 
 }

#2

@louisdt

Where's your semicolon?