My php script sends back the encoded JSON string.
I just lost how to actually use an array, now it sits well in Javascript?
The ultimate goal is to loop through a multidimensional array in JavaScript to extract values (prices) ...
I managed to get JavaScript to get the encoded string (tested by printing it on the screen), but I'm not sure how I can actually use the array, or how I would scroll it like in PHP ..
I basically need to make the JavaScript equivalent for this PHP code
foreach ($array as $item => $value){
foreach ($value as $item2 => $value2){
}
}
Thanks for any help.
Oz
shane source
share