Skip to content Skip to sidebar Skip to footer

What Is This Data Type (Get Request) Bit.ly Oauth2

{ 'status_code': 200, 'status_txt': 'OK', 'data': { 'long_url': 'http:\/\/google.com\/', 'url': 'http:\/\/bit.ly\/17A2GVj', 'hash': '17A2GVj', 'global_hash': '3j4ir4', 'new_hash':

Solution 1:

$respObj = json_decode($resp);
echo $respObj->data->hash;

json_decode, by default, returns an instance of stdClass. Access stdClass' members with ->.


Post a Comment for "What Is This Data Type (Get Request) Bit.ly Oauth2"