我有陣列下面如何根據指定的給定數組值將數組值轉換爲逗號分隔的字符串..?
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作爲逗號分隔的字符串輸出。
如何得到這.. ..?