0

朋友们,我需要使用 LARAVEL 4 + BLADE 展示以下数组:

array (size=2)
  'item1' => 
    array (size=5)
      0 => string 'A' (length=1)
      1 => string 'B' (length=1)
      2 => string 'C' (length=1)
      3 => string 'D' (length=1)
      4 => string 'E' (length=1)
  'item2' => 
    array (size=5)
      0 => string 'Overall result A' (length=48)
      1 => string 'Overall result B' (length=20)
      2 => string 'Overall result C' (length=18)
      3 => string 'Overall result D' (length=43)
      4 => string 'Overall result E' (length=28)

我无法在同一个循环中显示两个数组

例子:

@foreach($items as $item)
    <div class="track">
        <div class="track_citys">{{ $array1 }}</div>
        <div class="track_points">{{ $array2 }}</div>
    </div>
    <div class="clearfix"></div>
@endforeach
4

0 回答 0