Write the division and the remainder on two variables using php -


this question has answer here:

i dividing 1779 30. want write answer (without remainder) 1 variable , write remainder variable.

how this?

number without remainder:

$result = (int) (1779 / 30); 

the remainder:

$result = 1779 % 30; 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -