PHP头条
热点:

PHP获取音乐文件播放总时间-PHP源码


PHP获取音乐文件播放总时间

/*
* @Author : 冷流云
*
**/
newMedia($file);
$time=$media->duration;   // “单位/秒”
$h=floor($time/3600);
$m=floor(($time %3600)/60);
$s=floor($time-$h*3600-$m*60);
echo $h."小时".$m."分".$s."秒";
?>

以上就是PHP获取音乐文件播放总时间的内容,更多相关内容请关注PHP中文网(www.php1.cn)!

www.phpzy.comtrue/php/34304.htmlTechArticlePHP获取音乐文件播放总时间-PHP源码 PHP获取音乐文件播放总时间 /** @Author : 冷流云***/ newMedia($file);$time=$media->duration; // “单位/秒”$h=floor($time/3600);$m=floor(($time %3600)/60);$s=floor($time-$h*360...

相关文章

PHP之友评论

今天推荐