How to use gettimeofday() function to get an array that contains current time information in PHP

1 Answer

0 votes
// mixed gettimeofday( [bool $return_float] );

$t = gettimeofday();
echo "<pre>";
print_r($t);
echo "</pre>";

/*
run:
    
Array
(
    [sec] => 1458752890
    [usec] => 356551
    [minuteswest] => 0
    [dsttime] => 0
)
       
*/

 



answered Mar 23, 2016 by avibootz
...