note 27911 added to language.operators.arithmetic
| From: | mirrorball_girl at yahoo dot com | Date: | Tue, 24 Dec 2002 15:47:00 +0000 |
| Subject: | note 27911 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41258@lists.php.net to get a copy of this message | ||
I think this will always work:
function div($a,$b){
return round(($a-($a % $b))/$b);
}
--
http://www.php.net/manual/en/language.operators.arithmetic.php
http://master.php.net/manage/user-notes.php?action=edit+27911
http://master.php.net/manage/user-notes.php?action=delete+27911
http://master.php.net/manage/user-notes.php?action=reject+27911