php - Put result into session variables -


i have following:

$res = $backend->user_login($data); 

when do:

print_r($res); die(); 

i have:

array ( [id] => 4cf79960693054282e58eedb [phone-id] =>email@email.com [phone-type] => web ) 

now have put each of 3 results in session variable, end 3 session variables containig id, phone-id , phone-type.

how can that?

thanks lot

you mean this?

foreach($res $name => $var) {    $_session[$name] = $var; } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -