php - Access to array $this->session->array -


how can access array $this->session->userdata('auth') ?

print_r() displays:

array (   [ncli] => 0   [nomecli] => somename    [nomcli1] => administrador    [morcli] => company    [nuser] => admin    [pwdcli] => pwdadmin  )  

but can't use $this->session->userdata('auth')[ncli]...

put in variable:

$data = $this->session->userdata('auth'); echo $data['ncli']; 

the reason why can't ()[] php doesn't support yet.


Comments

Popular posts from this blog

c# - Outlook Add-in,group emails based on color category -

javascript - Checkbox in firefox extension -

reflection - How to use FxCop CustomDictionary.xml from the project localization? -