{%arr = {1,2,3,4,10,11}/}
{%foreach x,i in arr%} {! Loop through the array with indexer !}
$i$ - $x$
{$foreach%}
-----------------------------
{%foreach x in arr%} {! Loop through the array without indexer !}
$x$
{$foreach%}