Difference between revisions of "Learning PHP (2)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→Tutorials) |
Karl Jones (Talk | contribs) (→Tutorials) |
||
Line 30: | Line 30: | ||
* [http://www.w3schools.com/php/func_date_date.asp PHP date() Function] | * [http://www.w3schools.com/php/func_date_date.asp PHP date() Function] | ||
* [http://stackoverflow.com/questions/470617/get-current-date-and-time-in-php Get current date and time in PHP] | * [http://stackoverflow.com/questions/470617/get-current-date-and-time-in-php Get current date and time in PHP] | ||
+ | * [http://php.net/manual/en/function.date.php DateTime In PHP] |
Revision as of 08:42, 3 September 2015
This article contains examples of PHP.
Example One: date and time
PHP provides the date() function, which returns date and time.
The date and time can be
echo date('l jS \of F Y h:i:s A');