Really a shame.
Like the children do :
18:4 = 4 rest 2
Now, I use to round() to ceil() to floor() to rand() but
how could obtain in a division an integer with the rest?
you mean this:
$a = 7 $b = 3 $c = round($a/$b); $d = $a%$b; echo $c." rest: ".$d;
Uhm... Thank you, but now I have to kill you so you will never tell anybody this about me.
???
Just mark the thread resolved if it is.
I'd do this:
$c = intval($a / $b);
since round() returns a float, and also (this might be important) since the result of round() will often be the incorrect value (e.g. round(19 / 4)).