> 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:

$daysinmonth = Date("t", mktime(0, 0, 0, $month, 1, $year));

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to