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.

This Question Belongs to PHP >> Date And Timestamp

Join The Discussion

Related Questions on Date and Timestamp