This function will return the last day of the month as an integer...
function monLength($Month, $Year) {
/
counts down from 31 and checks to
see if the date given exits
returns the first found existing date
/
for ($i=31;$i>26;$i--) {
if (checkdate($Month, $i, $Year)) { return $i; }
}
}