0
我有一個像這樣的數組:$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
)