What's wrong with my formula to get the result down? I wanted it to work for every day 31 and to correct the month that there was not 31.
for ($i = 0 ; $i <= 12 ; $i++){
$tempo = strtotime('03/31/1990'.'+'.$i.' month');
echo date('d/m/Y', $tempo);
echo '<br>';
}
Result:
31/03/1990
01/05/1990
31/05/1990
01/07/1990
31/07/1990
31/08/1990
01/10/1990
31/10/1990
01/12/1990
31/12/1990
31/01/1991
03/03/1991
31/03/1991