title: how to print an array in smarty?
body: <p>I have an array:</p>
  
  <pre><code> $team_details = Array ( [id] =&gt; 1 [name] =&gt; doge_finder [total_rewards] =&gt; 52.00524500 [desciption] =&gt; team is only of doge miners [created_by] =&gt; 20 );
  
  /* assigning to a smarty template */
  $smarty-&gt;assign("team_record", $team_details);          
  $smarty-&gt;display($tpl);
  </code></pre>
  
  <p>In template file:</p>
  
  <pre><code>{foreach from= $team_record key=team item=trecord}
  {$trecord[$key].name}
  {/foreach}
  </code></pre>
  
  <p>In result output must be "doge_finder", but I got first initial character of each record in array ie. "1 d 5 t 2"</p>
  
  <p>how can I resolve this problem?</p>