How to get the current UNIX timestamp using PHP

No Comments

UNIX TIMESTAMPIs the time measured in seconds since the start of the Unix epoch “1 January 1970”

Use the PHP time function as per example below

echo time(); //Will print out the current timestamp
//OUTPUT: 1285365600

To read more about the time function click here

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found.

Leave a Reply

Notify of