Assuming I had this result of print_r below Array ( [0] => 10 [1] => 11 ) which is the result of months within a specific year october
print_r
Array ( [0] => 10 [1] => 11 )