php mengonversi objek ke array bersarang

$array = json_decode(json_encode($nested_object), true);
Innocent Ibis