-
What will be the output of the following PHP code if date is 15/03/2019?
<?php
$date = new DateTime();
echo $date->format('l,F,js,Y')
?>
-
- Friday,March,15th 2019
- Sunday, 15 03 2019
- Saturday, 15th March 2019
- Friday, 15/03, 2019
- None of these
Correct Option: A
The format() method displays the date in same way as standard date function().