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 trialNicolas Daniel
Courses Plus Student 3,030 PointsPHP Basic Date Function Objective
I'm getting a bummer saying "Look like you forgot the echo command"
<?php
//Place your code below this comment
$today = date('F d\, Y');
echo 'Today is ' . $today;
?>
2 Answers
rtprjct
30,548 Pointsseems like a bit of a semantics issue:
You need to remove the slash from the argument passed within the date() function
<?php
echo 'Today is ';
//Place your code below this comment
echo date('F d, Y');
?>
Nicolas Daniel
Courses Plus Student 3,030 PointsNicolas Daniel
Courses Plus Student 3,030 PointsThanks Artie91!
Arvelle Whitaker
7,452 PointsArvelle Whitaker
7,452 PointsSo what is the difference between echo date ('F d, Y') vs echo date ("F d, Y") ?? i used the double quotes and it did not work. everything else i did was ok. single and double quotes keep getting me. im going back to review again.