PHP funkce intdiv()
Dostupnost ve verzích: PHP 7.0
Integer division
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$dividend |
??? | ||
$divisor |
??? |
Návratové hodnoty
int
If divisor is 0, a {@link DivisionByZeroError} exception is thrown. If the dividend is PHP_INT_MIN and the divisor is -1, then an {@link ArithmeticError} exception is thrown.
Další zdroje
- https://www.php.net/manual/en/function.intdiv.php
- DivisionByZeroError} exception is thrown. If the dividend is PHP_INT_MIN and the divisor is -1, then an {@link ArithmeticError} exception is thrown.