Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
PHP uses the standard Unix-style timestamp to work with dates. This is simply the number of seconds since January 1, 1970. You get the current timestamp using the time function, shown in Example 11-15.
<?php $timestamp= time( ); echo $timestamp; ?> |