Here i have one array from this array i want to take fullname & email, and put in to session variable,i think to use foreach loop the we have to put session variable i tried but i am not able to ? can you please anyone update my answer
print_r($user_data);
Array
(
[id] => 1
[i_am] => Individual
[fullName] => Kanniyappan
[emailId] => kanniyappan@g2evolution.co.in
[password] => welcome
[mobileNo] => 9986128665
[maxContactLeads] =>
[otp] => 502649
[otpstatus] => Active
[createdOn] => 2017-10-14 20:24:18
[regStatus] => Active
)
I tried
foreach ($user_data as $ukey => $uvalue) {
# code...
echo $uvalue['mobileNo'];
}