php mod
snippet in php

php mod

user1511

<?php
/*
 * Makes the value of "result" congruent to "value1" modulo "value2".
 * opcode number: 5
 */
echo 6 % 3;
?>

function to find the mod of a number in php

user3401

PHP fmod() Function