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

<?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
?>
Syntax
int intdiv ( int $dividend , int $divisor )
ParameterDESCRIPTION
$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


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com







    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 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer