Examveda
Examveda

What will be the output of the following PHP code? If say date is 22/06/2013.
<?php
    printf( date("t") )
?>

A. 30

B. 22

C. JUNE

D. 2013

Answer: Option A

Solution(By Examveda Team)

The t parameter is used to determine the number of days in the current month.

Join The Discussion

Related Questions on Date and Timestamp