getdate

(PHP 3, PHP 4 )

getdate -- Riceve informazioni su data/orario

Descrizione

array getdate ( [int timestamp])

Restituisce un array associativo contenente le informazioni sulla data del timestamp, o dell'attuale orario locale se non è stato assegnato timestamp, con i seguenti elementi di array:

Esempio 1. Esempio di getdate()

$today = getdate(); 
$month = $today['month']; 
$mday = $today['mday']; 
$year = $today['year']; 
echo "$month $mday, $year";