我有这样的数组
$array = (
[customer] => Array
(
[emailAddress] => test@gmail.com
)
[recommendationProductDetails] => Array
(
[0] => Array
(
[productId] => 7053
[title] => silikonska termalna pasta tuba 7gr
[imageWebAddress] => http://Image/GetImage/6118
[webAddress] => http://Shop/Product?name=AG%20Termopasty%20silikonska%20termalna%20pasta%20tuba%207gr&accountingCode=8703
[description] => silikonska termalna pasta tuba 7gr
)
[1] => Array
(
[productId] => 4610
[title] => silikonska termalna pasta tuba 7gr
[imageWebAddress] => http://Image/GetImage/6118
[webAddress] => http://Shop/Product?name=AG%20Termopasty%20silikonska%20termalna%20pasta%20tuba%207gr&accountingCode=8703
[description] => silikonska termalna pasta tuba 7gr
)
[2] => Array
(
[productId] => 4591
[title] => silikonska termalna pasta tuba 7gr
[imageWebAddress] => http://Image/GetImage/6118
[webAddress] => http://Shop/Product?name=AG%20Termopasty%20silikonska%20termalna%20pasta%20tuba%207gr&accountingCode=8703
[description] => silikonska termalna pasta tuba 7gr
)
我需要得到看起来像这样的新数组
$newArray = [7053, 4610, 4591, 1756];
我从这个问题中尝试了很多解决方案 是否有从 PHP 数组中提取“列”的函数? 但我没有运气,我也试过像这样 foreach
皈依舞
摇曳的蔷薇
回首忆惘然