title: Get key from an array in smarty
body: <p>If I have an array that looks like this:</p>
  
  <pre><code>$my_array = array(2) { ["mykey"]=&gt; int(2) ["mysecondkey"]=&gt; int(3) }
  </code></pre>
  
  <p>How can I get to the key value of the first element?.</p>
  
  <p>So far I know I can do <code>$my_array[0]</code>, but how do I get to the first key? I want to avoid doing foreach. </p>
  
  <p>Thanks!</p>