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