Examveda
Examveda

What will be the output of the following code? If say date is 22/06/2013.
<?php
    echo "Today is ".date("F d, Y")
?>

A. Today is 22 June, 2013

B. Today is 22-06-2013

C. Today is 06-22-2013

D. Today is June 22, 2013

Answer: Option D

Solution(By Examveda Team)

F is the parameter for complete text representation of month, d for day of month, and Y for 4 digit representation of year.

Join The Discussion

Related Questions on Date and Timestamp