PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
function vtime($time) {
$output = '';
foreach (array(86400 => '天', 3600 => '小时', 60 => '分', 1 => '秒') as $key => $value) {
if ($time >= $key) $output .= floor($time/$key) . $value;
$time %= $key;
}
return $output;
}
转载请注明:谷谷点程序 » php vtime函数