Re: detecting leap years?
| From: | Per Jessen | Date: | Mon, 22 Jan 2018 07:13:05 +0000 |
| Subject: | Re: detecting leap years? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326366@lists.php.net to get a copy of this message | ||
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.