2
我有一個PHP對象,看起來像這樣:如何訪問命名空間的php對象?
Array
(
[0] => Google\API\Response\Model\Goog Object
(
[rp:Google\API\Response\Model\Goog:private] =>
[sn:Google\API\Response\Model\Goog:private] => aaazzz999
[id:Google\API\Response\Model\Goog:private] => 105735459918379875
[c_id:Google\API\Response\Model\Goog:private] =>
[st:Google\API\Response\Model\Goog:private] => 1
[m:Google\API\Response\Model\Goog:private] => 0
[sts:Google\API\Response\Model\Goog:private] => 1459918379875
[ts:Google\API\Response\Model\Goog:private] => 1459918379875
[t:Google\API\Response\Model\Goog:private] => 3
[replayed:Google\API\Response\Model\Goog:private] =>
[zipped:Google\API\Response\Model\Goog:private] =>
[broadcast:Google\API\Response\Model\Goog:private] =>
[broadcast_media_url:Google\API\Response\Model\Goog:private] =>
)
)
如何訪問[SN:谷歌\ API \響應\型號\ goog:私人]數組值?
'get_object_vars()' – aldrin27
get_object_vars() – Jose