ExamVeda
Login
Home
This question belongs to PHP Date And Timestamp
Date and Timestamp
?

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')
?>

Answer & Solution
Correct Answer: Option A
The format() method displays the date in same way as standard date function().
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.