php - Foreach in Multi-Dimensional Array - Stack Overflow Okay, here's a non-recursive solution which I believe follows the desired pattern as long as your $data array remains two-dimensional. I'm not going to admit to ...