|
intdivInteger division Description
int intdiv(int
$num1 , int $num2 )
Returns the integer quotient of the division of Parameters
Return Values
The integer quotient of the division of Errors/Exceptions
If Examples
Example #1 intdiv example
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 |