Accessing the array with dynamic keys
<p>I have an array (name array) which is smarty assigned and I want to access the value of every element of an array. I know we need to use eval here, but not sure how to use it?</p>

<pre><code>var loop = 'true' , text , i=0;
while(loop == 'true')
{
   text = ~$array[i] ;//ERROR :-(
   i++;
   if(text=='')
       loop = 'false';
}
</code></pre>
