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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -