Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP intdiv() Function

PHP intdiv() Function

PHP 7 New Features PHP 7 New Features

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 PHP 7 New Features