Oops, try again. Did you create your own array on line 33?


#1



https://www.codecademy.com/courses/web-beginner-en-QnQrd/0/5


No error, but it says this:
Oops, try again. Did you create your own array on line 33?


<html>
  <head>
    <title>Iteration Nation</title>
  </head>
  <body>
    <p>
<?php    
        $food = array('pizza', 'salad', 'burger');
        $salad = array('lettuce' => 'with',
                   'tomato' => 'without',
                   'onions' => 'with');
    
      // Looping through an array using "for".
      // First, let's get the length of the array!
      $length = count($food);
    
      // Remember, arrays in PHP are zero-based:
      for ($i = 0; $i < $length; $i++) {
        echo $food[$i] . '<br />';
      }
    
      echo '<br /><br />I want my salad:<br />';
    
      // Loop through an associative array using "foreach":
      foreach ($salad as $ingredient=>$include) {
        echo $include . ' ' . $ingredient . '<br />';
      }
    
      echo '<br /><br />';
    
      // Create your own array here and loop
      // through it using foreach!
        $myArray = array('make' => 'Porsche', 'number' => '3.2', '2ndMake' => 'Boxster');
                    
        foreach ($myArray as $property => $value) {
            echo 'The ' . $property . ' is ' . $value . '<br />';
        }

      ?>
    </p>
  </body>
</html>


This is line 33:

$myArray = array('make' => 'Porsche', 'number' => '3.2', '2ndMake' => 'Boxster');

#2

HI try to refresh the page..


#3

Thank you for your reply, but I tried that already like 4 times.


#4

I run your code and it works .. try to change browser..


#5

Mozilla is working, Thanks!