I have two arrays the first one has this structure
Parameter Keys array
array
0 =>
array
0 => string ':user_pass' (length=10)
1 => string ':user_id' (length=8)
2 => string ':user_name' (length=10)
1 =>
array
0 => string 'user_pass' (length=9)
1 => string 'user_id' (length=7)
2 => string 'user_name' (length=9)
The second is
array
0 => string 'test' (length=4)
1 => string 'test' (length=4)
2 => string '1' (length=1)
I want a new array with keys the same as the values from the first array[0][x], and then values the same as the values from the second array so I get something like for my new array
array
:user_id => string '1' (length=1)
:user_name => string 'test' (length=4)
:user_pass => string 'test' (length=4)
I tried using array combine but it needs the same amount of values and keys.
I just like to say the first array is created from a preg_match_all function