需要一些快速建議我想訪問一個對象數組,但我掙扎着,請看下面的數組。它開始的對象我通常會用戶$結果 - > _消息 - >令牌,但它不工作我拖網谷歌和本網站,但無法訪問令牌。訪問PHP對象數組
object(Zend_Auth_Result)#76 (3) {
["_code":protected] => int(1)
["_identity":protected] => string(9) "3232323233"
["_messages":protected] => array(2) {
["user"] => object(stdClass)#71 (13) {
["id"] => string(9) "232323332"
["name"] => string(14) "John Smith"
["first_name"] => string(5) "John"
["last_name"] => string(8) "Smith"
["link"] => string(41) "http://www.facebook.com/"
["username"] => string(17) "john.smith"
["location"] => object(stdClass)#68 (2) {
["id"] => string(0) ""
["name"] => NULL
}
["email"] => string(22) "[email protected]"
["timezone"] => int(1)
["locale"] => string(5) "en_US"
["verified"] => bool(true)
["updated_time"] => string(24) "2012-06-21T13:57:12+0000"
}
["token"] => string(109) "AAAGIFdDivU4BAMoxyHT3bqY8eBGhnWo9YKM1szHZAnWgY10AIBgxz9LeNCeA2HV9Yhkp8uM5Aq0WR39ZBdcnOa4MxXVI22rnmFKNbYdQZDZD"
}
}
任何建議任何機構?
乾杯
Ĵ
這不是一個陣列,它的類型的對象'Zend_Auth_Result'。 – Jon