[thelist] Bad tip on my part
Henrik Hansen
mlist at fsck.dk
Fri Mar 1 13:03:00 CST 2002
On Friday 01 March 2002 19:04, Faust at LeeMarvin.com wrote:
> Opps.... Make that.
>
>
> // Here's a function for finding the number of days in Feburary
> // with a little test loop.
>
> for ($i = 0; $i <= 11000; $i = $i + mt_rand(1, 100)) {
> echo "daysInFebruary($i) = " . daysInFebruary($i) . "<br>";
> }
hmm, am i misunderstanding something but wont:
date("t", $timestamp);
return the number of days in the month ?
--
Henrik Hansen
More information about the thelist
mailing list