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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -