I used strtotime() to go back to the previous month and always take the last day of the previous month, I used to do this:
$data_teste = date('Y-m-t', strtotime('-1 month'));
And it was going on right up to today (31-10-2018), instea...
asked by
31.10.2018 / 15:33