how can i retrieve the last day of the month? like 31 - Jul, 30 - Jun , 28 - Feb
<?php $month = 8; $year = 2003;
$lastdayofmonth = mktime(12,0,0,$month+1,0,$year); ?>
You could also use the date() function with the t parameter. Of course, that also requires a timestamp...
Larry
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php