Re: detecting leap years?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeffry Killen wrote:

> 
> 2: I have had problems with using % alone in php, and reading the
> manual
>     it didn't actually do what it does in javascript: 2.5%1 = .5, so I
>     used fmod
>    I wrote a bunch if code in javascript and did an almost verbatim
>    translation to php. But every where I used % in the javascript
>    code, I had to use fmod in php to get the same result.

In php, '%' is integer modulus, it's quite clearly documented. 



-- 
Per Jessen, Zürich (7.0°C)
http://www.dns24.ch/ - your free DNS host, made in Switzerland.


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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux