?
What will be the output of the following PHP code if date is 24/02/2008?
What will be the output of the following PHP code if date is 24/02/2008?
<?php
$date = new DateTime();
echo $date->format('l,F,js,Y')
?>
<?php
$date = new DateTime();
echo $date->format('l,F,js,Y')
?>
Answer & Solution
Correct Answer:
Option
A
The format() method displays the date in same way as standard date function().
Join the Discussion
Login to post a comment or share your explanation.
Login