I have an array like : $array1
I am using loop to display value of array. I want to display all array value.
but needed display like this –
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
)
You have to transform the array first:
Hope you can figure out the rest from there.