I am new to PHP and I have a pretty basic question for which I wasn't able to find an answer to. This is an example JSONObject:
{
"biome":"forest",
"id":"51134535488",
"animals":[
{"species":"bear", "age":"8", "gender":"male", "family":"mamal"},
{"species":"hawk", "age":"3", "gender":"female", "family":"bird"},
{"species":"elk", "age":"5", "gender":"male", "family":"mamal"},
{"species":"spider", "age":"0.3", "gender":"female", "family":"insect"}
]
}
In it, we have a JSONArray, which holds four JSONObjects. How would I go about getting only the JSONArray from the JSONObject and then foreach looping it to get all the inner rows? I am working in Lumen framework, so a specific Lumen answer would be much apreciated (if it can be done differently in Lumen)!