How to obtain the Object array AccessToken Object ([type] => MAC [accessToken] => 242762 | signature [refreshToken] => [macKey] => signature [macAlgorithm] => hmac-sha-1)
How can I obtain the value of accessToken?
Reply to discussion (solution)
AccessToken-> type
AccessToken-> type
Echo $ obj-> AccessToken-> type ;??
No.
$ Obj = new AccessToken ();
$ Obj-> type;
$ Obj = new AccessToken ();
$ Obj-> type;
Fatal error: Class 'accesstransferen' not found in F: \ wamp \ www \ phpcms \ test. php
According to what you wrote, an error is reported.
Originally, this is an array of objects.
How can you guess if you paste the code?
If it is print_r ($ obj); you can get the result.
Then $ obj-> accessToken is what you want
$ Obj-> accessToken
AccessToken indicates that the data after an object is the key value of this object. The value of this object is the object name-> key name.