I have two arrays which are spat out from a table of form text inputs.
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
}
array(3) {
[0]=>
string(1) "11"
[1]=>
string(1) "22"
[2]=>
string(1) "33"
}
I need a function to take those and give me this;
array{
'[0]' = > array (
[0]=> '1'
[1]=> '11'
),
'[1]' = > array (
[0]=> '2'
[1]=> '22'
),
'[2]' = > array (
[0]=> '3'
[1]=> '33'
)
}
Sure there must be a native function which gets me half way but I'm stuck.
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
}
array(3) {
[0]=>
string(1) "11"
[1]=>
string(1) "22"
[2]=>
string(1) "33"
}
I need a function to take those and give me this;
array{
'[0]' = > array (
[0]=> '1'
[1]=> '11'
),
'[1]' = > array (
[0]=> '2'
[1]=> '22'
),
'[2]' = > array (
[0]=> '3'
[1]=> '33'
)
}
Sure there must be a native function which gets me half way but I'm stuck.