mod function in php code example
Example 1: php mod
<?php
/*
* Makes the value of "result" congruent to "value1" modulo "value2".
* opcode number: 5
*/
echo 6 % 3;
?>
Example 2: function to find the mod of a number in php
PHP fmod() Function
<?php
/*
* Makes the value of "result" congruent to "value1" modulo "value2".
* opcode number: 5
*/
echo 6 % 3;
?>
PHP fmod() Function