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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.