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
I needed the last day of the next month, maybe someone will need it:
echo date("Y-m-t", strtotime("next month")); //is 2020-08-13, return 2020-09-30