Alan Edwardes

date()

The "date()" function in php is quite useful, as you can use it after a copyright logo, and it will auto update:

© <?php echo date('Y');?> Joe Blogs

Or you could use it for a simple time display:

The date/time is: <?php echo date('l dS \of F Y');?>

02nd of December 2006 at 3:13 PM

5 years, 5 months ago

written by Alan Edwardes.

48 words

rand: It's fun to play with ...

next: IE: Gotcha clipboard!

prev: PHP In flash

share:FacebookTwitterRedditdiggStumbleUpondeliciousHacker NewsLinkedIn

Add a Comment

© 2006 – 2012 Alan Edwardes / code on github
Top