I'm having problems with matching up different array values to other array keys. Here's my array:
array(3){
  [0]=>array(3){ //image number (mainly used for image display order)
    [0]=>string(1)"1"
    [1]=>string(1)"2"
    [2]=>string(1)"3"
  }
  [1]=>array(3){ //image link
    [0]=>string(8)"img1.jpg"
    [1]=>string(8)"img2.jpg"
    [2]=>string(8)"img3.jpg"
  }
  [2]=>array(3){ //thumbnail link
    [0]=>string(10)"thumb1.jpg"
    [1]=>string(10)"thumb2.jpg"
    [2]=>string(10)"thumb3.jpg"
  }
}
I'm using smarty, here's my code:
{foreach from=$CARIMGS item=newArr}
   {foreach from=$newArr key=index item=item}               
      {$item} <br>      
   {/foreach}
{/foreach}
Here's what I get now:
1
2
3
img1.jpg
img2.jpg
img3.jpg
thumb1.jpg
thumb2.jpg
thumb3.jpg
And I need to get this result:
1 - img1.jpg - thumb1.jpg
2 - img2.jpg - thumb2.jpg
3 - img3.jpg - thumb3.jpg
Thanks in advance!