int intdiv ( int $dividend , int $divisor )
Parameter | DESCRIPTION |
$dividend | Required : dividend of the division. |
$divisior | Required : Divisor of the division. |
The output is integer quotient of the division.
Available in PHP 7
Example :
<?Php
echo intdiv(4,9); // Output 0
echo "<br>";
echo intdiv(3,5); // Output 0
echo "<br>";
echo intdiv(20,10); // Output is 2
echo "<br>";
echo intdiv(2,13); // Output is 0
echo "<br>";
echo intdiv(4,100); // Output is 0
echo "<br>";
echo intdiv(100,4); // Output is 25
?>
← Subscribe to our YouTube Channel here