remainder in php code example Example 1: how to divide in php $a = $b / $c; Example 2: function to find the mod of a number in php PHP fmod() Function