Published on : August 03, 2020
Title | : | foreach |
Purpose | : | Iterate the array |
Syntax | : | [loop.@data array] //Do the action [/loop.@data] |
Input Parameter | : | Array to iterate |
Return value | : | It does not return the value |
Example | : | [loop.@data template.item] //Do the action you want [/loop.@data] |
Output | : | It gives the key and value of the array element |
Description | : | In this, we iterate the array value to get an array element and its key. |