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

What will be the output of the following code? (If say date is 22/06/2013.)
Code:
    <?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: d
Explanation: The function date() is used to format a local date and time, and it will return the formatted date string. F is the parameter for complete text representation of month, d for day of month, and Y for 4 digit representation of year.
 

Tìm kiếm

Back
Top