1

Which is the correct PHP statement to print the current time in the format of hour:minutes:seconds(am/pm) i.e., 10:22:54pm?

Correct Answer: <?php echo date("h:i:sa");?>

Make the most of this question

This page focuses on one PHP MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.