毫秒转换为基本时间
我需要将 1774132
转换为 30:42 或 30 分钟 42 秒或任何输出。有没有 PHP 函数可以做到这一点?
I need to convert 1774132
to 30:42 or 30 minutes and 42 seconds or whatever the output of this is. Is there any PHP function that does this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
很久以前在网上找到的,但现在不知道从哪里来了:
I found this online a long time ago, but I have no idea where from anymore:
像这样的东西应该有效:
Something like this should work: