PHP uses the Gettimeofday function to return the current time and store it in an associative array, and the PHP array function
This example describes how PHP uses the Gettimeofday function to return the current time and store it in an associative array. Share to everyone for your reference. The specific analysis is as follows:
The official English description is as follows:
Key Description
SEC Seconds since midnight before January 1, 1970
USEC microseconds since the SEC value
Minuteswest
Local time zone difference from GMT, in minutes
Dsttime 1 IFF daylight savings Time is in effect,
0 iff not.
<?php$now = Gettimeofday (), echo "as an associative array:\n", foreach ($Now as $Key + $Value) {echo "$Key + $Va Lue\n ";}? >
The output results are as follows:
SEC = 1261918156usec + 724964minuteswest = 0dsttime = 0
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/970867.html www.bkjia.com true http://www.bkjia.com/PHPjc/970867.html techarticle PHP uses the Gettimeofday function to return the current time and store it in an associative array, and the PHP array function is an example of how PHP uses the Gettimeofday function to return the current time and store it in an associative array ...