Home PHP How to get the current UNIX timestamp using PHP?
 
 
 

How to get the current UNIX timestamp using PHP?

PDF Print E-mail

Question: How to get the current UNIX timestamp using PHP?

UNIX TIMESTAMP: Is the time measured in seconds since the start of the Unix epoch "1 January 1970"

 

Answer:

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

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!