time()
The time() function returns the current Unix timestamp.
A Unix timestamp represents the number of seconds since January 1, 1970.
Example
Section titled “Example”echo time();Using with date()
Section titled “Using with date()”echo date("Y-m-d H:i:s", time());