The time() returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). This function is similar to mktime() with no parameters or calling date ("U").
Syntax of time() Function in PHP
Parameter of time() Function in PHP
void - void is optional parameter.
Example of time() Function in PHP:
echo($t . "<br />");
echo(date("D F d Y",$t));
Output: The output of the code above could be:
Fri Aug 29 2009
Posted on: August 29, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles