Skip to content

Instantly share code, notes, and snippets.

@yankchina
Created February 7, 2015 10:17
Show Gist options
  • Save yankchina/7358742a245eafbd0cff to your computer and use it in GitHub Desktop.
Save yankchina/7358742a245eafbd0cff to your computer and use it in GitHub Desktop.
php blade 模板中用嵌套循环来实现数组自定义字段输出
<div>
@foreach ($list_array as $key => $list_item)
<div>
@foreach ($column_array as $key => $column)
{{ $list_item[ $column ]}}
@endforeach
</div>
@endforeach
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment