在php中使用键中的多个冒号读取对象

时间:2015-05-27 19:07:43

标签: php json

我的对象类似于以下结构。

注意密钥中的多个冒号。我怎么能在php中读到这个。 我想读取access_token和其他相同级别的数据。 但由于密钥中存在多个冒号,因此无法使其正常工作。

__PHP_Incomplete_Class Object
(
    [__PHP_Incomplete_Class_Name] => GoogleGAL_Client
    [auth:GoogleGAL_Client:private] => __PHP_Incomplete_Class Object
        (
            [__PHP_Incomplete_Class_Name] => GoogleGAL_Auth_OAuth2
            [assertionCredentials:GoogleGAL_Auth_OAuth2:private] => 
            [state:GoogleGAL_Auth_OAuth2:private] => 
            [token:GoogleGAL_Auth_OAuth2:private] => Array
                (
                    [access_token] => ashfkahsfk
                    [token_type] => Bearer
                    [expires_in] => 3598
                    [id_token] => edjkajdl
                    [created] => 1432752375
                )

0 个答案:

没有答案
相关问题