Web lists-archives.com

Re: [PHP] detecting leap years?




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