扫码下载编程狮APP
<?php $x = 7; $y = 2; $result = fmod($x,$y); echo $result; // $result equals 1, because 2 * 3 + 1 = 7 ?>