cha*_*lie -3 php
我计算变量的小时和分钟,但我想将其转换为十进制数
例如,1小时30分钟应显示为1.5,2小时15分钟显示为2.25
小智 5
像这样的东西?
function convert($hours, $minutes) { return $hours + round($minutes / 60, 2); }
归档时间:
8 年,11 月 前
查看次数:
3719 次
最近记录: