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 Enhancing a Simple PHP Application Refactoring the Codebase Separating Concerns: MVC

stuck on the 4th part of this challnge.

I cannot form my code to display the ice cream name and ice cream count like

this is my current code which doesnt work: echo "<li>" . $flavor["name"] . '+' . $flavor["likes"] "</li>";

can someone please explain what is wrong with this and also all the ways to display it correctly

thanks

1 Answer

Hi Miraj,

There is supposed to be a space before the plus sign. It also looks like you're missing a concatenation operator between the "likes" variable and the closing </li>