我有如下指定的数组
Array
(
[5] => Array
(
[id] => 5
[first_name] => Diyaa
[profile_pic] => profile/user5.png
)
[8] => Array
(
[id] => 8
[first_name] => Raj
[profile_pic] => profile/user8.png
)
[12] => Array
(
[id] => 12
[first_name] => Vanathi
[profile_pic] => profile/user12.png
)
[15] => Array
(
[id] => 15
[first_name] => Giri
[profile_pic] => profile/user15.png
)
[19] => Array
(
[id] => 19
[first_name] => Mahesh
[profile_pic] => profile/user19.png
)
)
我有另一个数组,如下所示
Array
(
[0] => 8
[1] => 15
[2] => 19
)
我想要first_name
来自第一个数组,基于第二个数组值 => 8、15 和 19。
所以我需要Raj,Giri,Mahesh作为逗号分隔字符串的输出。
这个怎么得到..?