i am using a zend model which returns me an object in form of $row with all values
but i am not able to get value from this array . is this posible to get values without foreach
this is the array returned
Zend_Db_Table_Row Object
(
[_data:protected] => Array
(
[user_id] => 2
[udid] => 34
[firstname] => a
[lastname] => a
[email] => [email protected]
[username] => abc
[password] => c91718531fd9f8b89c4e
[created_date] => 2010-02-11
[updated_datetime] => 2012-06-25 12:48:17
[lastlogin_datetime] =>
[group_id] => 2
[status] => Active
)
)
i need to get the user_id,firstname,email from this array
any help will be appreciated .
i have tried like
$forgotpassword = $userModel->forgotpassword ( $post ); // which contains this array
$id = $forgotpassword['_data:protected']['id']; exit; // but doesnt seem to work
$forgotpassword->_data['id']protectedmodifier in class could not be accessed like that,it only can be accessed with$thisin class(or it's derived class)'s method,Gordon made a wonderful answer,:=).