how we can assign single value of array to any variable in javascript
<pre><code>&lt;?php
$abc=array();
$abc = (abc, cde,fre);
?&gt;
&lt;script language="javascript" type="text/javascript"&gt;
for (var i = 0; i &lt; 3; i++) {
var gdf = "&lt;?php echo $lat['i'];?&gt;";
alert("value ="+gdf);
}
&lt;/script&gt;
</code></pre>
