getdate

(PHP 3, PHP 4 , PHP 5)

getdate -- Citește informații despre dată/timp

Descriere

array getdate ( [int timestamp])

Returnează un tablou asociativ conținând informații despre dată din timestamp, sau timpul local curent dacă nu este dat timestamp; tabloul returnat are următoarele chei asociative:

Exemplu 1. Exemplu getdate()

$azi = getdate();
$luna = $azi['month'];
$ziua = $azi['mday'];
$anul = $azi['year'];
echo "$luna $ziua, $anul";