I have an array
Array
(
[0] => 4
[1] => 5
)
and other one
Array
(
[0] => Array
(
[v1] => aa
[v2] => ss
)
.
.
.
.
[4] => Array
(
[v1] => vv
[v2] => dd
)
[5] => Array
(
[v1] => gg
[v2] => rr
)
)
The question, how can I get results from the second array using values in the first one. The output should be looking like this
[4] => Array
(
[v1] => vv
[v2] => dd
)
[5] => Array
(
[v1] => gg
[v2] => rr
)
I'm trying some function like array_intersect and array_values but It didn't work.