+
95
-

回答

<?php
$v = 1230;//总秒数
echo gmdate('H:i:s', $v); //00:20:30 时分秒显示

gmdate是php内置函数,非常简洁

网友回复

我知道答案,我要回答