Days in a month

Is there a php function to find out how many days a given month has? I know that 30 days hath September, April June and November, etc, but February presents a problem. I really don’t want to have to write code to calculate whether a given year is a leap year. Any suggestions?

Lee

date(‘T’); should work for that.

ahh! Thanks… actually it’s date(‘t’); T is for Timezone abbreviation :)

Sponsor our Newsletter | Privacy Policy | Terms of Service