Current time
PHP provides several functions that generate a Unix timestamp. The simplest:
integer time( )
returns the timestamp for the current date and time, as shown in this fragment:
// prints the current timestamp: e.g., 1008553254 echo time( );
PHP provides several functions that generate a Unix timestamp. The simplest:
integer time( )
returns the timestamp for the current date and time, as shown in this fragment:
// prints the current timestamp: e.g., 1008553254 echo time( );