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 PHP Basics PHP on the Web Date Function

Toni Caktas
Toni Caktas
16,957 Points

what

<?php

//Place your code below this comment echo "Today is " . date("F d, Y"); ?>

index.php
<?php

//Place your code below this comment
echo "Today is " . date("F d, Y");
?>

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! While your code would produce the same results, the challenge is expecting two separate echo statements (for some reason). Instead of concatenating the date onto the end, write a new echo statement with the date function below the commented portion. You should have the original echo statement, the comment, and then the new echo statement with the date function.

Hope this helps! :sparkles: