整数部分:intval(floor(7/3))
余数部分:7%3
$time = 130;
$times = intval(floor(130/60)); //输出 2
$time2 = 130%60 //输出 10
整数部分:intval(floor(7/3))
余数部分:7%3
$time = 130;
$times = intval(floor(130/60)); //输出 2
$time2 = 130%60 //输出 10
转载于:https://my.oschina.net/meng527/blog/910425