I have multidimensional array.
Want to compare current level zero value with next level zero value like Array[0][0] == Array[1][0] using smarty.
I am able to get only the current element value. How can I get next element value in the current loop
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
Want to compare current level zero value with next level zero value like Array[0][0] == Array[1][0] using smarty.
I am able to get only the current element value. How can I get next element value in the current loop
{{foreach from=$volume item=element}}
{{if $element@iteration > 1}}
{{$element[0]}}
{{/if}}
{{/foreach}}