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 Introducing Arrays

Can't seem to understand a task

I am almost sure I am doing the right thing, any ideas? http://imgur.com/mqTwhnV Thanks, Alex

3 Answers

Hi Alejandro,

Sometimes the error messages aren't too accurate. Did you copy and paste the code in the link you offered? I ask because I noticed that the R in the array is missing and the word these is missing in the third echo statement. Otherwise the code looks good. I just looked at the code challenge again and the R comes in the last question.

Jeff

Thanks! Will try now.

Kevin Murphy
Kevin Murphy
24,380 Points

I couldn't figure out what was wrong by looking at your code so I took the challenge. I discovered the same thing as Jeff in that you were missing the word "these" in the third echo statement. I did an experiment omitted that word got the same error.

Everything works, thank you so much. It was those missing pieces of text.