I'm trying to wade my way through working more with multidimensional arrays to decrease the number of SQL queries I'm having to make. The problem is, they are new to me. Can someone give me some direction how to accomplish this?
Here's an example of the array:
Array
(
[0] => Array
(
[0] => 2013-07-01
[1] => Andy
[2] => Hopkins Module
)
[1] => Array
(
[0] => 2013-07-01
[1] => Frank
[2] => Rotation
)
[2] => Array
(
[0] => 2013-07-01
[1] => James
[2] => Morning Report
)
[3] => Array
(
[0] => 2013-08-01
[1] => James
[2] => Noon Conference
)
This array continues on with a lot more names and months. The data is ordered by name, meaning all of James item's are listed in a group. Each group of names may have one or more data points. What I would like to do is loop through each month and print out the second and third values. I know how to do a while statement to print out everything, but I'm not sure how to group all of the data by month.