The docs (see below) for bcmod() are rather skimpy. Does anyone have a clue as to how it works. Basically I want to do this (below code). PS: I am new to PHP but not to programming in general.
Tom


$i = 1;
while (something true){
    $modulus = the_modulus_of($i / 4); // does php do % instead of /?
    if($modulus == 0){
         do_this_this_time();
    }
$i++;
}

*bcmod*

(PHP 3, PHP 4 )
bcmod --  Get modulus of an arbitrary precision number
Description
string bcmod ( string left_operand, string modulus)

Get the modulus of the left_operand using modulus.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to