Complete PHP Math Reference
The fmod() function divides x by y and returns the remainder (modulo) of the division.
| Parameter | Description |
|---|---|
| x | Required. A number |
| y | Required. |
In the following example we will use the fmod() function to return the remainder of 5/2:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.