search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

PHP intdiv() function

PHP intdiv() function

PHP 7 has newly added the intdiv() function, which receives two parameters and returns the value of the first parameter divided by the second parameter and rounded .

Example

<?php

echo intdiv(9,3),echo "<br/>";

echo intdiv(10,3),echo "<br/>";

echo intdiv(5,10),echo "<br/>";

?>

The above program execution output result is:

3
3
0
new file
<?php echo intdiv(9,3),echo "<br/>"; echo intdiv(10,3),echo "<br/>"; echo intdiv(5,10),echo "<br/>"; ?>
Reset Code
Automatic operation
submit
Preview Clear