How to Get only division result between two numbers without modulas in php -
$a = 100; $b = 40; $result = $a/$b; echo $result;
for result shown 2.5 want 2
how remove division result in this
you can give
$a = 100; $b = 40; echo floor($a/$b);
Comments
Post a Comment