PHP问题-list($usec, $sec) = explode(" ", microtime());

日期:2021-05-24 10:14:54 人气:1

PHP问题-list($usec, $sec) = explode(" ", microtime());

把时间戳和微秒分别存入到$sec和$usec中.
microtime()//microtime() 当前 Unix 时间戳以及微秒数,本函数以 "msec sec" 的格式返回一个字符串.
explode(" ", microtime());//按空格把微秒数和时间戳拆开成一个数组,因为microtime()返回的字符串是以空格为分隔符.
explode(" ", microtime
    A+
热门评论