Tangled in these objects, having the following, how to get the value of id?

object(stdClass)#1 (1) { ["response"]=> object(stdClass)#2 (2) { ["count"]=> int(18) ["items"]=> array(1) { [0]=> object(stdClass)#3 (7) { ["id"]=> int(119) ["date"]=> int(1475281654) ["out"]=> int(0) ["user_id"]=> int(999000777) ["read_state"]=> int(0) ["title"]=> string(5) " ... " ["body"]=> string(10) "добро" } } } } 

    1 answer 1

    $obj->response->items[0]->id ?

    • Yes, exactly, there is an array, thank you!) - Vladimir Alexandrov