我有一个像这样的数组:$array1
我正在使用循环来显示数组的值。我想显示所有数组值。
但需要这样的显示 -
Slovenly Europe
1. [0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
2. [0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
Greece
1. [0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
2. [0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
3. [0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
foreach($array1 as $v){
$v['storename']; }
$array1 = Array
(
[0] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Slovenly Europe
)
[1] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Slovenly Europe
)
[2] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Slovenly Europe
)
[3] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Greece
)
[4] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Greece
)
[5] => Array
(
[0] => /7/0/702-100_thumb-sm_1.jpg
[thumbnail] => /7/0/702-100_thumb-sm_1.jpg
[storename] => Greece
)