我怎样才能得到下面数组的值?
Array
(
[list_items] => Array
(
[0] => Array
(
[productName] => BUGGY INFANTIL PRO 125CC
[productId] => 1
[productColor] => Azul
[productQuantity] => 2
[productIMG] => http://localhost/kasi_src/img/vehicules/buggygasolina/BUGGY-INFANTIL-125CC-AZUL.png
[productURL] => http://localhost/kasi_src/125CCInfantil.html
[productPrice] => 1000
)
[1] => Array
(
[productName] => PATINETE 24V
[productId] => 2
[productColor] => Azul
[productQuantity] => 2
[productIMG] => http://localhost/kasi_src/img/vehicules/patinetes/24.png
[productURL] => http://localhost/kasi_src/patinete-24v.html
[productPrice] => 240
)
)
)
我尝试了一个简单的 foreach 循环
foreach($items as $key => $value){
echo $value . "\n";
}
但我最终得到了这个错误:注意:数组到字符串的转换......有什么想法吗?
喵喔喔
有只小跳蛙