Examveda
Examveda

What will the following script output?
<?php
$time = strtotime ('2004/01/01');
echo date ('H:i:s', $time);
?>

A. 0:00:00

B. 12:00:00

C. 00:i:00

D. 12:i:00

E. -1

Answer: Option C


This Question Belongs to PHP >> Date And Timestamp

Join The Discussion

Comments ( 1 )

  1. Phors Phaktra
    Phors Phaktra :
    4 years ago

    answer: A

Related Questions on Date and Timestamp