<?php
$json = <<<JSON
{"g_aaa77":
{"'title'":"title2",
"'r_a6cff'":
{"name":"name2","price":"2"},
"'r_7fc7b'":
{"name":"name22","price":"22"}
},
"g_a36b5":
{"title":"title1",
"r_4e122":
{"name":"name1","price":"1"},
"r_155fa":
{"name":"name11","price":"11"}
}
}
JSON;
$array = json_decode($json, true);
print_r($array);
$array = array_values($array);
print_r($array);
echo $array[1]['title'];
preferences:
61.38 ms | 406 KiB | 5 Q