Voting

: max(eight, five)?
(Example: nine)

The Note You're Voting On

alex at xelam dot net
21 years ago
Integer Modulo

If you want the remainder of the division of two Integers rather than Floats, use "%"; eg:

<?php
$a
= 4;
$b = 3;

print(
$a % $b);
?>

Will output "1".

<< Back to user notes page

To Top