我有阵列下面如何根据指定的给定数组值将数组值转换为逗号分隔的字符串..?
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
)
)
作为指定的I具有另一阵列下面
Array
(
[0] => 8
[1] => 15
[2] => 19
)
我想从第一阵列的first_name
给出,基于第二阵列值=>8,15和19。
所以我需要Raj,Giri,Mahesh作为逗号分隔的字符串输出。
如何得到这.. ..?