Q. 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: (A)
<?php echo date("h:i:sa");?>
You must be Logged in to update hint/solution