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 trialJorge Monte
2,535 PointsPHP Bummer "forgot" an echo, but my solution looks correct on preview.
Hi Everyone! Just solved the problem in PHP, it appears exactly as requested on the preview, but got a Bummer.
<?php
$today = date("F d, Y");
//Place your code below this comment
echo 'Today is ' . $today ;
?>
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Jorge,
Yes, your code will produce the proper outcome (good job), but it is not the way the instructions asked you to do it. Challenges are very picky with the instructions and they must be followed exactly or you get the Bummer!
.
Here, you modified the code that was preloaded. Throughout Treehouse courses, unless you are explicitly told to alter preloaded code... don't.
The challenge has a spot where it says to "Place your code below this comment", so it is expecting you to add on to the code. The challenge is expecting the original echo
statement to remain there untouched, and for you to add another echo statement to add the date.
<?php
echo 'Today is ';
//Place your code below this comment
echo date("F d, Y");
?>
Hope this helps.
Keep Coding! :)
Jorge Monte
2,535 PointsJorge Monte
2,535 PointsThank you Jason :)