Good afternoon, I'm maintaining a code that shows a graph, the X axis presents the last 11 months and the current month, who wrote it manually entered the months and wanted to automate it, I thought to do it as follows :
$meses = array(date(m)-11, date(m)-10, date(m)-9, date(m)-8, date(m)-7, date(m)-6, date(m)-5, date(m)-4, date(m)-3, date(m)-2, date(m)-1, date(m));
The problem is that by doing so months will be shown in number form and I need it to appear in date (M) format, but the function does not accept subtraction 'date (M) -1';