intdiv

PHP 7, PHP 8
intdiv - Integer division
Intdiv Online Tool
Manual
Code Examples

Example #1 intdiv example

Result: int(1) int(-1) int(-1) int(1) int(1) int(1) Fatal error: Uncaught ArithmeticError: Division of PHP_INT_MIN by -1 is not an integer in %s on line 8 Fatal error: Uncaught DivisionByZeroError: Division by zero in %s on line 9
PHP Version:


Example #2 of intdiv

PHP Version:


Function intdiv:

Mathematical Functions Functions

Most used PHP functions