update : 2015.11.03
php.shukuma.com검색:
|
intdiv(PHP 7) intdiv — Integer division 설명
int intdiv
( int
$dividend
, int $divisor
)
Returns the integer quotient of the division of 인수
반환값
The integer quotient of the division of 오류/예외
If 예제
Example #1 intdiv() example
<?php 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 |