getdate

It returns date/time details

Example

<?php
echo “<pre>”;
$timeDetails = getdate();
print_r($timeDetails);
?>

Output

Array
(
[seconds] => 48
[minutes] => 49
[hours] => 11
[mday] => 25
[wday] => 3
[mon] => 4
[year] => 2012
[yday] => 115
[weekday] => Wednesday
[month] => April
[0] => 1335334788
)

Share