Vidyalelo
PHP · Q15

Date And Timestamp

Programming · PHP · question 15

Q15

What will be the output of the following PHP code if date is 24/02/2008? format('l,F,js,Y') ?>

A.
Sunday, February 24th 2008
Answer
B.
Sunday, 02 24 2008
C.
Sunday, 24 02 2008
D.
Sunday, 24th February 2008

Answer: Option A

Solution

Answer: Option A
Solution:
The format() method displays the date in same way as standard date function().