Posted The: 28/04/2009 At: 13:40
Contents:
The time(); function of PHP, will output the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
Can be used as a timestamp in database enteries, the stamps can be transformed into "readable" dates with the date function.
<?php
$time = time();
echo "<p>" . date('Y-m-d', $time) . "</p>";
?>
Comments: [0]
© Brugbart Webdesign