localtime

It returns the local time
Example

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

 

Output

Array
(
[0] => 10
[1] => 23
[2] => 12
[3] => 25
[4] => 3
[5] => 112
[6] => 3
[7] => 115
[8] => 0

Share