Difference between revisions of "Learning PHP (2)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Example One: date and time)
(Tutorials)
Line 29: Line 29:
 
* [http://www.w3schools.com/php/php_ref_date.asp PHP 5 Date/Time Functions]
 
* [http://www.w3schools.com/php/php_ref_date.asp PHP 5 Date/Time Functions]
 
* [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]

Revision as of 08:41, 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');

See Also

External links

Documentation

Tutorials