| 
  
   Menu 
  × 
      
    × 
      Correct! 
    Exercise:Loop through the items in the  
$colors = array("red", "green", "blue", "yellow"); 
@(7) ($colors @(2) $x) {
  echo $x;
}
 
$colors = array("red", "green", "blue", "yellow"); 
foreach ($colors as $x) {
  echo $x;
}
 
    Not CorrectClick here to try again. Correct!Next ❯ | 
This will reset the score of ALL 47 exercises.
Are you sure you want to continue?