I am dealing with an API that only lets me access data by month. Occasionally, the data spans over 2 months, but there is no easy test to check against that.
I am already looping over the result data to find the data I need. I figure I can just call the API twice, for both months, and append 1 month onto the other.
I am trying to figure out how to join the 2 arrays together. Heres an example, I have:
firstMonth = array(0 => object0, 1 => object1, 2 => object2)
secondMonth = array(0 => object3, 1 => object4, 2 => object5)
and I need to join them so I have one array, like:
bothMonths = array(0 => object 0, 1 => object1, 2 => object2, 3 => object3, 4 => object4, 5 => object5)
So, how can I join my 2 arrays?
array_merge();