What will be the output of the following code? If say date is 22/06/2013.
<?php
echo "Today is ".date("F d, Y")
?>
<?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.Related Questions on Date and Timestamp
A. TRUE
B. FALSE
C. Valid
D. Invalid
The date() function returns ___ representation of the current date and/or time.
A. Integer
B. String
C. Boolean
D. Float
If the format is F then which one of the following will be returned?
A. Complete text representation of month
B. Day of month, with leading zero
C. Daylight saving time
D. Day of month, without zeros
Join The Discussion