note 5677 deleted from Operators by torben
| From: | torben@php.net | Date: | Mon, 21 Aug 2000 04:25:11 +0000 |
| Subject: | note 5677 deleted from Operators by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2818@lists.php.net to get a copy of this message | ||
For anyone who was looking for a function to return an integer as to how many times $a went into $b
(ie. forget the remainder), here is one as I couldn't find out:<p>
<pre>
function div($intValue,$intDivBy) {
return ($intValue / $intDivBy) - (($intValue % $intDivBy) / $intDivBy);
}
</pre>