How does one divide numbers but exclude the remainder in PHP?
Just cast the resulting value to an int.
$n = (int) ($i / $m); Interesting functions (depending on what you want to achieve and if you expect negative integers to get devided) are floor(), ceil() and round().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With