title: smarty array index
body: <p>I have an array </p>
  
  <pre><code>array('foo_1' =&gt; 1, 'bar_1' =&gt;1, 'foo_2' =&gt; 2, 'bar_2' =&gt; 2, ... )
  
  for($i = 1; $i&lt;=12; $i++){
      echo $month['foo_'.$i];
  }
  </code></pre>
  
  <p>And I don't understand how can I access the values from it using Smarty.</p>
  
  <pre><code>{counter start=0 skip=1 assign="i"}
   {section name = month start = 0 loop = 12 step = 1}
    {if isset($arr.foo_.$i)}
     {$arr.bar_$i}
    {/if}
    {counter}
   {/section}
  </code></pre>
  
  <p>But it doesn't work. The main issue is - How I can access array['foo_1']  in smarty ? Can you please help?</p>