我有一个关联数组,标题$data
如下:
Array
(
[0] => Array
(
[item_id] => 170
[item_title] => Master of Engineering
[item_time_stamp] => 1421152531
[item_user_id] => 244
[item_type_id] => pages
[item_photo] => 169
[profile_image] => <img src="http://54.174.50.242/theme/frontend/foxplus/style/default/image/pages/category_169.jpg" alt="" width="50" height="50" />
)
[1] => Array
(
[item_id] => 169
[item_title] => SF
[item_time_stamp] => 1421063963
[item_user_id] => 901
[item_type_id] => pages
[profile_image] => <img src="http://54.174.50.242/theme/frontend/foxplus/style/default/image/pages/category_169.jpg" alt="" width="50" height="50" />
)
)
现在我只想获取 key 中图像的 URL [profile_image]
。最终生成的数组应如下所示:
Array
(
[0] => Array
(
[item_id] => 170
[item_title] => Master of Engineering
[item_time_stamp] => 1421152531
[item_user_id] => 244
[item_type_id] => pages
[item_photo] => 169
[profile_image] => http://54.174.50.242/theme/frontend/foxplus/style/default/image/pages/category_169.jpg
)
[1] => Array
(
[item_id] => 169
[item_title] => SF
[item_time_stamp] => 1421063963
[item_user_id] => 901
[item_type_id] => pages
[profile_image] => http://54.174.50.242/theme/frontend/foxplus/style/default/image/pages/category_169.jpg
)
)
我应该怎么得到这个?请帮我。