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
Post a Comment