Date/time
PHP Manual

getdate

(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:

Example#1 Exemplu getdate()

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


Date/time
PHP Manual