I get protected array from this
$user_id = Mage::getSingleton('admin/session')->getData('user');
var_dump($user_id);die;
object(Mage_Admin_Model_User)[115]
protected '_eventPrefix' => string 'admin_user' (length=10)
protected '_role' => null
protected '_hasAvailableResources' => boolean true
protected '_eventObject' => string 'object' (length=6)
protected '_resourceName' => string 'admin/user' (length=10)
protected '_resource' => null
protected '_resourceCollectionName' => string 'admin/user_collection' (length=21)
protected '_cacheTag' => boolean false
protected '_dataSaveAllowed' => boolean true
protected '_isObjectNew' => null
protected '_data' =>
array (size=17)
'user_id' => string '1' (length=1)
I want to get 'user_id'.,and tried like that $id = $user_id['_data']['user_id']; but it returns null