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
Post a Comment