I have the following array and want to get out the id attribute but so far my attempts to extract it have resulted in NULL or cannot call protected;
So i've tried things like vardump($array->attributes) with no success and need a fresh perspective on the matter.
object(Zend_Auth_Result)#137 (3) {
["_code":protected]=> int(1)
["_identity":protected]=> object(User)#154 (6) {
["errors"]=> NULL
["attributes":"ActiveRecord\Model":private]=> array(11) {
["id"]=> int(19)
["username"]=> string(4) "Root"
["fname"]=> NULL
["sname"]=> NULL
["slug"]=> string(4) "root"
["password"]=> string(128) "99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8" ["admin_key"]=> NULL ["email"]=> string(16) "root@babefix.com" ["user_rank_id"]=> int(3) ["created_at"]=> object(ActiveRecord\DateTime)#155 (5) { ["model":"ActiveRecord\DateTime":private]=> *RECURSION* ["attribute_name":"ActiveRecord\DateTime":private]=> string(10) "created_at" ["date"]=> string(19) "2011-04-03 20:53:07" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "BST" } ["updated_at"]=> object(ActiveRecord\DateTime)#156 (5) { ["model":"ActiveRecord\DateTime":private]=> *RECURSION* ["attribute_name":"ActiveRecord\DateTime":private]=> string(10) "updated_at" ["date"]=> string(19) "2011-08-10 19:19:13" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "BST" } } ["__dirty":"ActiveRecord\Model":private]=> array(0) { } ["__readonly":"ActiveRecord\Model":private]=> bool(false) ["__relationships":"ActiveRecord\Model":private]=> array(0) { } ["__new_record":"ActiveRecord\Model":private]=> bool(false) } ["_messages":protected]=> array(0) { } }