|
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
The above example will output: int(1) int(-1) int(-1) int(1) int(1) int(1)
Example #2 intdiv Example With Invalid Divisor
The above example will output: ArithmeticError: Division of PHP_INT_MIN by -1 is not an integer DivisionByZeroError: Division by zero |