I have the following array:
Array
(
[message] =>
[user_id] => 10
[errors] =>
[temp_access_token(emailabc@gmail.com)] => Array
(
[access_token] => 99abcdefghijk
[generated] =>
)
[temp_access_token(emaildef@gmail.com)] => Array
(
[access_token] => 99klmopqrstuv
[generated] =>
Here is how the array is being created:
$_SESSION["temp_access_token($username)"] = json_decode($access_token, true);
I am after the following values because I want to store them as $_SESSION variables. The number of temp_access_token/email combinations is always unkown.
[temp_access_token(emailabc@gmail.com)][access_token];
[temp_access_token(emaildef@gmail.com)][access_token];
How do I step through this array, printing the access token for each email address?