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 Creating the Menu and Footer Variables and Conditionals

I don't understand how resolve chanllenge task 4 of 4

I don't understant why I must change the value of flavor and add a conditionnal to hide the message.... What is the question ? appears or hide the message ?

1 Answer

Mark Southard
Mark Southard
9,502 Points

In task 3, you should have set $flavor to something other than cookie dough to prevent the message from appearing. In task 4, you want for the final line to be displayed indicating that your and Randy's favorite flavor are cookie dough.