How to Get the Current Unix Time in PHP with time()
Unix time counts the seconds since 1 January 1970 UTC, and many systems store and exchange times that way. In PHP, time() returns it as a whole number, and gmdate() turns it into readable text in UTC.
