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 trialAdnan MERRAKCHI
2,546 Pointsplease help ! it showa bummer but the preview identical with the true answer !!
can you help me
<?php
echo 'Today is '. date("F") . " " . date("d") . ", " . date("Y") ;
?>
3 Answers
Thomas Fildes
22,687 PointsHi Adnan,
Your code may be correct on the preview but the challenge will probably say bummer because there is a much easier way to write this without using concatenation. Here is the code I used to pass this challenge:
<?php
echo 'Today is ';
//Place your code below this comment
echo date("F d, Y");
?>
Hope this helps! Happy Coding!!!
Adnan MERRAKCHI
2,546 PointsYEAH !! THNX Thomas Fildes for ur time and ur answer it works :D :D now
Adnan MERRAKCHI
2,546 Pointsthnx also Benjamin Orimoloye for your help :D happy coding everyone :D
Benjamin Orimoloye
23,328 PointsBenjamin Orimoloye
23,328 Pointsecho "Today is". date('F d, Y');
your answer will print out the expected result, but it's not keeping your code simple.