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 trialDaniel Harrison
2,944 PointsI am totally lost
Cannot figure out Array Keys 2 part Challenge in the Build a Basic PHP series. Any help would be appreciated
1 Answer
Jennifer Nordell
Treehouse TeacherI wish I knew what you'd tried that was failing. Because you passed the first step, my gut instinct is to say that maybe you missed the part in the instructions where it said to add open and closed parentheses around the ISBN number. But I really have no idea. Here is the echo line that you need:
<li><?php echo $book . "(" . $isbn . ")"; ?></li>
Hope this helps!
Daniel Harrison
2,944 PointsThank you for you prompt reply.
But i did not pass the first step!! Where it asks to modify the foreach .
that is what has me totally confused.
thanks again
Dan
Jennifer Nordell
Treehouse TeacherDaniel Harrison ah ha! Sorry, I misunderstood. This is the first line you need then:
<?php foreach($books as $isbn => $book) { ?>
Daniel Harrison
2,944 PointsDaniel Harrison
2,944 PointsTHANK YOU!!