fmod(): reminder (modulo) of division
float fmod(float $X,float $y);
$X is the dividend
$Y is the divisor
Output is remainder of $x/$y
<?Php
echo fmod(5,2); // Output 1
echo "<br>";
echo fmod(10,2); // Output 0
echo "<br>";
echo fmod(13,2); // Output is 1
echo "<br>";
echo fmod(6,3); // Output is 0
?>
← Subscribe to our Youtube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com
|