Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Last Altered:
Function [other Function type actions]
Item [operators of similar scope]
Mathematical [other Mathematical operators]
Baseline
As at baseline
mod(sourceNum, moduloNum)
mod() returns modulo of a number sourceNum as set by number modulusNum, i.e. the integer remainder of sourceNum divided by modulusNum. Thus:
$MyNumber = mod(11,3);
sets $MyNumber to 2.