Re: [PHP] getting number of days in agiven month

2001-03-26 Thread David Robley
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

RE: [PHP] getting number of days in agiven month

2001-03-26 Thread Jason Murray
> 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