Web Hosting Talk







View Full Version : Dates in PHP???


PaulH
09-22-2002, 02:43 PM
Is there any way to find out how many days for example are in feb 2002 in a php script using the date functions?

Thanks Paul

lusid
09-22-2002, 02:50 PM
Check out the -t
t - number of days in the given month; i.e. "28" to "31"
http://www.php.net/manual/en/function.date.php