mod - chung-leong/qb GitHub Wiki
mod - Floored division modulo
float mod( float $x, float $y )
mod() returns the remainder after a floored division is performed on x and y. The result is defined as: r = y * floor( x / y )
.
Parameters:
x - The dividend. It can be a scalar or an array.
y - The divisor. It can be a scalar or an array.
Return Value:
y * floor( x / y ). If x or y is an array, then return value is also an array, the size of which match the larger of x and y.
Version
1.0 and above.