PHP Date and Time Functions

In the footer of this site is a copyright statement with the current year. The “Year” updates automatically using the PHP Time function. Here is the code I use:


Copyright ©
< ?PHP $g_year= date ("Y"); ?>
< ?PHP echo($g_year); ?>
Blackwell & Associates, Inc. All rights reserved.

Tutorials:
PHP Date - Manual
Date () Function

Comments are closed.