//返回两数相除之商和余数function get_div_and_mod($left_operand, $right_operand){ $div = intval($left_operand / $right_operand); $mod = $left_operand % $right_operand; return array($div, $mod);} 来源:https://www.cnblogs.com/erinmin/p/11906546.html 标签 余数