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 trialJoão Panão
2,951 PointsI don't know If I'm doing anything wrong or the website is bugging me saying it's wrong....
I've seen the example on workspaces and it's correct... Am I doing something wrong?
<?php
echo 'Today is '
//Place your code below this comment
. date ('F d, Y');
?>
2 Answers
Adam N
70,280 PointsThis challenge can be passed. Restart the challenge and try echoing the call to the date function instead of using string concatenation.
Let me know if this helps here
Dayne Stevens
Courses Plus Student 5,849 PointsThis runs fine on PHPfiddle http://phpfiddle.org/# might be that the site is bugging out? Maybe it's trying to check for the leading 0 but there isn't one because it's later than the 9th of the month? Not sure.
João Panão
2,951 PointsJoão Panão
2,951 Pointsit doesn't... I think it's really the website.
This is how I wrote:
<?php echo 'Today is '; //Place your code below this comment echo date ('F d, Y'); ?>
Adam N
70,280 PointsAdam N
70,280 PointsGenerally, when you call a func, you don't include any whitespace. Example:
writeMsg(whatever)
Let me know if this helps here
João Panão
2,951 PointsJoão Panão
2,951 PointsIt worked now. Thanks.
Guess I'm having too much problems in php :/