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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -