ajax - PHP json_encode json with variation of array. JSON Sometimes do not appear in firebug as JSON -


does json specific array structure?

when used in

$value['date'][0] = "12-21-2012"; $value['name'][1] = "joe"; echo json_encode($value); 

it seems detect json under firebug

however, when switched around firebug not seem see json

$value[0]['date'] = "12-21-2012"; $value[1]['name'] = "joe"; echo json_encode($value); 

is behaving normally?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -