I have these value in php
<?php $phpArray = array(
0 => "Mon",
1 => "Tue",
2 => "Wed",
3 => "Thu",
4 => "Fri",
5 => "Sat",
6 => "Sun",
);
?>
I get these values in a loop like this
<script type="text/javascript">
var jArray= <?php echo json_encode($phpArray ); ?>;
for(var i=0;i<6;i++){
// alert(jArray[i]);
}
</script>
But I have a situation like this where I need loop
{ data: { id: 'e', name: 'store', weight: 45, faveColor: '#EDA1ED', faveShape: 'ellipse' } },
Now i want that value on 'Store' and remains I want same ,I want to fetch all data through loop. How can i do this ?????