Question #6964
Submitted by

**Answiki**on 10/19/2022 at 01:36:49 PM UTC# How to calculate the remainder of the euclidean division in PHP?

Merged questions

Answer
Submitted by

**Answiki**on 10/19/2022 at 01:39:09 PM UTCIn PHP, the modulo (`%`

) operator is used to calculate the remainder of the euclidean division (the remainder after dividing one integer by another) :

```
// Display 2
echo 8 % 3;
```

Answer by

**Answiki**on 10/19/2022 at 01:39:09 PMIn PHP, the modulo (`%`

) operator is used to calculate the remainder of the euclidean division (the remainder after dividing one integer by another) :

```
// Display 2
echo 8 % 3;
```

Question by

**Answiki**10/19/2022 at 01:36:49 PM
How to calculate the remainder of the euclidean division in PHP?

# | ID | Query | URL | Count |
---|

Icons proudly provided by Friconix.