intdiv():Integer division (quotient) of a number

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
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

Math Functions fmod(): floating point remainder (modulo) of the division
base_convert(): Convert number From any base to other
Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here

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