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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -