Page 1 of 1

div a modulo in php

Posted: Wed Jan 07, 2004 5:36 am
by pelegk2
i waned to to div and mod calcultaions
i tried to use :
gmp_div
gmp_mod
but i ma getting the message :
Call to undefined function: gmp_div()
what to do?
is there anotherway i can calculate the div and mod?
thanks in advance
peleg

Posted: Wed Jan 07, 2004 7:01 am
by patrikG
Check on the operators section in the manual:

http://uk.php.net/manual/en/language.op ... hmetic.php

The modulus is %