intdiv():Integer division quotient of a number

int intdiv ( int $dividend , int $divisor )
$dividendRequired : dividend of the division.
$divisiorRequired : Divisor of the division.
The output is integer quotient of the division.
Available in PHP 7

Example :

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


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 All rights reserved worldwide Privacy Policy Disclaimer