{
"line1": 12,
"line2": 4,
"line3": 66,
"line4": false,
"line5": true,
"line6": [
{
"line7": "false",
"line8": "true"
},
{
"line9": "false",
"line10": "false"
}
],
"line11": 0,
"line12": 0,
Using json_decode, I can extract elements from array with the following method:
$showline1 = $obj->line1;
$showline2 = $obj->line2;
But how to extract line7, line8, line9 and line10? I tried using:
$showline7 = $obj->line6->line7; But it didn't worked.