I have 2 arrays:
array 1 I want it to be a keys(duplicate is ok) in array_combine:
Array
(
[0] => id
[1] => user_id
[2] => firstname
)
And here's my array 2 that I wanted to be the values in array_combine:
Array
(
[0] => 363
[1] => 363
[2] => Omotayo
)
Array
(
[0] => 167
[1] => 167
[2] => Shafraaz
)
Now challenge is, I have 2 arrays the first one has only one array and the second array has 2 inside arrays. The first array that I wanted to be the keys(duplicate) in array_combine. My desire output like below:
Array
(
[id] => 363
[user_id] => 363
[firstname] => Omotayo
)
Array
(
[id] => 167
[user_id] => 167
[firstname] => Shafraaz
)
Just wonder is there way to achieve this task? Appreciated any advise!!
Thanks