PHP Build a Basic PHP Website (2018) Listing and Sorting Inventory Items Associative Arrays

Build a Basic PHP Website challenge error

hi I can't understand what is wrong with my code

$movie[] = [
 "title" => "The Empire Strikes Back"

<h1>Back to the Future (1985)</h1>

    <td>Robert Zemeckis</td>
    <th>IMDB Rating</th>
    <th>IMDB Ranking</th>

1 Answer

Jeffrey Howard
Jeffrey Howard
17,085 Points

Hi Sindre,

Looks like your first set of brackets that you added to $movie, may be the cause of this task not working. The rest of your code looks correct.

For example below is how you create an empty array named "myArray":

$myArray = [];

Hope this helps. Happy coding!