PHP intdiv() function
PHP intdiv() function
PHP 7 has added the intdiv() function, which receives two parameters and returns the value of the first parameter divided by the second parameter. And rounded up.
Example
"; echo intdiv(10,3)."
"; echo intdiv(5,10)."
The above program execution output result is:
3
3
0
3
0