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

You should have my favorite flavor of ice cream in a variable named $flavor, and now it's time to display it to the scre

My answer seem to look fine but its giving me error saying "Oops! It looks like Task 1 is no longer passing.". <?php include("flavor.php"); $flavor = get_flavor(); echo "Randy's favorite flavor of ice cream is " . $flavor . "."; ?>

Trevor Jones
Trevor Jones
1,962 Points

Do you mind posting a screenshot of your code? I can get a better idea of what's going on if I could see that.

What Trevor said, or a link to the track, as I can't seemingly find it myself.

1 Answer

Hey you probably have this answered by now but if not here is the coding that will work for you.

<?php

include ('flavor.php');

$flavor = get_flavor();

echo "Hal's favorite flavor of ice cream is " . $flavor . ".";

?>