On Tue, 27 Mar 2001 10:22, Juan Luis Baptiste wrote:
> Hi,
>
> Is there a way to find out the mumber of days of a given month? for
>
> example a function that I pass the month number i.e. 02 (February) and
>
> it returns 28?
>
> thanks.
See date() and the t format character.
--
David Robley
> Is there a way to find out the mumber of days of a given month? for
> example a function that I pass the month number i.e. 02 (February) and
> it returns 28?
Date("t", $unixtimestamp);
If you have a month "2", you need a year as well since February's days vary
according to the year, so:
$days
2 matches
Mail list logo