关于php时间类的一个问题
这是代码class Time{static $start;
static function start(){
return self::$start=self::getMicrotime();
}
static function getMicrotime() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
static function getTime($length=6) {
return round(self::getMicrotime()-self::$start, $length);
}
}
echo Time::start();
为什么round后参数$length怎么没起作用?
追问:哦,谢谢,我试试看