Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Listing Inventory Items Associative Arrays

holly plyler
holly plyler
334 Points

asking for a year?

This question states that it wants the title displayed in the <h1> tag (which I am doing)

<?php
$movie = array("title" => "The Empire Strikes Back");  ?>

<h1><?php echo $movie["title"]; ?> </h1>

however I get the error: Double check for the year.

I have not yet been asked to add a year to the array so it seems a bit off.

also using internet explorer and it's showing some internet html jibberish instead of the proper tag.

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

Hi Holly,

The question asks you to echo the name of the movie inside the <h1> tags while keeping the year intact.

So you just need to replace the movie name with the php code.