title: How to get last element of an array in smarty templates
body: <p>I want to get last element of array in smarty template without using loop</p>
  
  <pre><code>&lt;?php
  $arr = array("first","second","third");
  
  $smarty-&gt;assign("arr",$arr);
  </code></pre>