title: assigning associative array in smarty
body: <p>So what I'm trying to achieve is assign multiple values in to a smarty array on the indexes that I want. It's hard to describe it, so I'll just show it:</p>
  
  <pre><code>{assign var='paymentTypes' 
  value=','|explode:"$paymentMethods[50],$paymentMethods[51],
  $paymentMethods[11],$paymentMethods[10],$paymentMethods[12],
  $paymentMethods[99],$paymentMethods[100]"}
  </code></pre>
  
  <p>(Formatted for readability)</p>
  
  <p>So now I have a paymentTypes array with the values placed on the keys starting from 0. What I want is to keep the keys that were in paymentMethods array - 50, 51, 11.. etc.</p>
  
  <p>And it has to be done totally in Smarty template file. Thanks for any ideas.</p>