How can I get the last day of the month in PHP?
Given:
$a_date = \"2009-11-23\"
I want 2009-11-30; and given
$a_dat
You could create a date for the first of the next month, and then use strtotime("-1 day", $firstOfNextMonth)
strtotime("-1 day", $firstOfNextMonth)