thanksalot for your replies!
now I'm finally almost done with my statistic thingie 🙂
in the end, I've done it the following way:
$lastday = mktime(0,0,0,($month+1),0,$year);
$retval = strftime ('%d', $lastday);
return $retval
gtx
-swp
another happier php coder 😉