I want to parse following json in php and get all the values
{"Student":
[
{ "adm_no":"101/1", "teacher_id":"4", "attendance":0},
{ "adm_no":"101/6", "teacher_id":"4", "attendance":0 },
{ "adm_no":"12/12", "teacher_id":"4", "attendance":0},
{ "adm_no":"14/12", "teacher_id":"4", "attendance":0},
{ "adm_no":"147/1", "teacher_id":"4", "attendance":0 },
{ "adm_no":"45/12", "teacher_id":"4", "attendance":0}
],
"class":"s3b",
"username":"4"
}
json_decodeyou don't need to "parse" anything, it's just PHP arrays and objects that you access normally.