Ver originalfor($k=$startingYear;$k<$endYear;$k++) $years[$k%2][]=$k; echo "Pares:".implode(",",$years[0])."<br>";echo "Impares:".implode(",",$years[1])."<br>";