I have a multidimensional array which, when echoed in PHP, looks like this:
{
"11-12-20":{"visits":0,"pageviews":0}
"11-12-21":{"visits":0,"pageviews":0}
"11-12-22":{"visits":0,"pageviews":0}
}// etc.
As you can see, the date is the key to the arrays inside the multidimensional array. So I can select an array from the multidimensional array using the date as the key:
$my_multi_array['12-12-12'];
JSON:
$.getJSON('file.php', function(data){
var test='11-12-29';
document.write(data.test);
});
When I test that in a browser, nothing is printed on the screen. Also, how would I go about looping through the whole of that array in jQuery and use the data inside that array's array.
I've been at this for hours now, and am pretty frustrated.