I have a straight forward array with 8 values. I would like to turn it into an multidimensional array. Currently it looks like so:
array(8) {
[0]=>
int(0)
[1]=>
float(100)
[2]=>
int(0)
[3]=>
int(0)
[4]=>
float(0.5)
[5]=>
float(53.6)
[6]=>
float(32.8)
[7]=>
float(9.4)
}
Using the values above I would like the array to format like so:
array[0][0] = 0
array[0][1] = 100
array[1][0] = 0
array[1][1] = 0
array[2][0] = .5
array[2][1] = 53.6
etc.
So the goal is to create a loop that loops through and sets every 2 values to an array within an array. Any ideas?