//返回兩數相除之商和餘數function get_div_and_mod($left_operand, $right_operand){ $div = intval($left_operand / $right_operand); $mod = $left_operand % $right_operand; return array($div, $mod);}