Difference between revisions of "Learning PHP (2)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→Tutorials) |
Karl Jones (Talk | contribs) (→External links) |
||
Line 31: | Line 31: | ||
* [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] | * [http://php.net/manual/en/function.date.php DateTime In PHP] | ||
+ | * [http://code.tutsplus.com/tutorials/dates-and-time-the-oop-way--net-35395 Dates and Time - The OOP Way] |
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');