I have long php variable after decoding JSON string using json_decode function. object(stdClass)#1 (3) { ["responseData"]=> object(stdClass)#2 (2) { ["results"]=> array(4) { [0]=> object(stdClass)#3 (8) { ["GsearchResultClass"]=> string(10) "GwebSearch" ["unescapedUrl"]=> string(32) "http://www.example.com/Home/"........ What should be the php syntax to access highlighted portion of string/array. i want to access value of this variable ["unescapedUrl"] Please help.