PHP PHP Basics PHP on the Web Date Function

Cyrus Eslamian
Cyrus Eslamian
3,722 Points

My code preview shows I am echoing the desired format, yet I get error.

Could this be a bug?

index.php
<?php
echo 'Today is ';
//Place your code below this comment
echo date('F d\, Y');
?>

1 Answer

Steven Parker
Steven Parker
177,482 Points

It looks like there is a stray backslash ("\") between the "d" in the format and the comma.

Cyrus Eslamian
Cyrus Eslamian
3,722 Points

You are right; thanks Steven!