Learning PHP (2)

From Wiki @ Karl Jones dot com
Revision as of 08:51, 3 September 2015 by Karl Jones (Talk | contribs) (Example One: date and time)

Jump to: navigation, search

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 formatted and used in a variety of ways.

<p><?php echo date("Y/m/d"); ?></p>
<p><?php echo date("l"); ?></p>

Online example]

See Also

External links

Documentation

Tutorials