Using strtotime(…) in PHP to calculate the last day of the month
August 15th, 2007
$unixtime = strtotime(strftime('%Y-%m-01 - 1 second',
strtotime('next month')));
$unixtime = strtotime(strftime('%Y-%m-01 - 1 second',
strtotime('next month')));