PHP intdiv() Function
PHP 7 newly added the intdiv() function, which takes two parameters and returns the value of the first parameter divided by the second, rounded down to an integer.
Example
Example
The output of the above program is:
3
3
0
PHP 7 New Features