title: Smarty assign value to an array variable index
body: <p>I am using SMARTY and I need to create an array and assign value to a particular index of it.</p>
  
  <p>Something like:</p>
  
  <pre><code>{foreach from=$a key='i' item='b'}
  //Some calculations here giving me a VALUE
  ARRAY[$i] = $VALUE;
  {/foreach}
  </code></pre>
  
  <p>Now the problem is when I am using standard Smarty Assign syntax</p>
  
  <pre><code>{assign var='array.$i' value=$VALUE}
  {assign var='array[$i]' value=$VALUE}
  {assign var=$array.$i value=$VALUE}
  {assign var='$array[$i]' value=$VALUE}
  </code></pre>
  
  <p>its not working. I need to use this array later in the code and hence need it in an array format only</p>