Hello all,
I realize this is my first post but I've been visiting PHP Freaks for years. I'm trying to accomplish something that I just can't seem to wrap my head around programmatically. Say I've got a multidimensional array with each subarray containing 4 numbers (1,1,1,1 - 2,2,2,2 - 3,3,3,3 - 4,4,4,4). How would I go about reading this multidimensional array in the sense that the output gives me 1,1,1,2 - 1,1,2,2, - 1,2,2,2, - 2,2,2,2 - 1,1,1,3 ..... 1,1,2,3 - 1,2,2,3 - 2,2,2,3 .... 3,3,3,4 - 3,3,4,4, - 3,4,4,4 - 4,4,4,4?
I hope I explained this well enough, if not please feel free to ask any questions and I'll be as pompt and helpful as I can at trying to explain what I'm trying to accomplish.
Thank you!