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)!
PHP之友评论