我有多维数组。
Array (4)
0 => Array (6)
0 => 0
1 => "100100105"
2 => "honey"
3 => "SUP"
4 => 0
5 => 0
1 => Array (6)
0 => 1
1 => "100100608"
2 => "bunny"
3 => "MEM"
4 => 0
5 => 0
2 => Array (6)
0 => 1
1 => "100100609"
2 => "munny"
3 => "DISTSTD"
4 => 0
5 => 0
3 => Array (6)
0 => 2
1 => "100300054"
2 => "sunny"
3 => "MEM"
4 => 0
5 => 0
想要使用 smarty 将当前级别的零值与下一个级别的零值进行比较,例如 Array[0][0] == Array[1][0]。
我只能获取当前元素值。如何在当前循环中获取下一个元素值
{{foreach from=$volume item=element}}
{{if $element@iteration > 1}}
{{$element[0]}}
{{/if}}
{{/foreach}}