Q:

Getting current date & time in PHP

belongs to collection: PHP Miscellaneous

0

Getting current date & time in PHP

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Here is the code to get the system's current date & time in PHP,

<?php
echo date('l jS \of F Y h:i:s A');
//output: Friday 18th of October 2019 12:39:53 PM
?>

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

PHP Miscellaneous

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
print (get) file extension in PHP... >>
<< How to redirect to another page in PHP?...