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
<?php echo intdiv(9,3) ."<br/>"; echo intdiv(10,3)."<br/>"; echo intdiv(5,10)."<br/"; ?>
The above program execution output result is:
3
3
0
3
0