PHP obtient le premier et le dernier jour du mois précédent
date('Y-m-01', strtotime('last month'));
date('Y-m-t', strtotime('last month'));
Abdullah al Mamun
date('Y-m-01', strtotime('last month'));
date('Y-m-t', strtotime('last month'));
$lastDay = date('t',strtotime('last month'));
print_r($lastDay);
$lastDateOfNextMonth =strtotime('last day of next month') ;
$lastDay = date('d/m/Y', $lastDateOfNextMonth);
print_r($lastDay);
$a_date = "2009-11-23";
echo date("Y-m-t", strtotime($a_date));
$config_month = 1;
$config_day = 1;
$new_expiry_date = date('Y-m-d', mktime(0, 0, 0, date('m') + $config_month, 1 + $config_day, date('Y')));