I am making an API request via PHP cURL.
When I run echo $response
I get the following JSON:
JSON (application/json):
{
"workers": [
{
"email": "micky@mcgurk.com",
"manager": {
"email": "boss@mcgurk.com"
}
},
{
"email": "michelle@mcgurk.com",
"manager": {
"email": "another_boss@mcgurk.com"
}
}
]
}
I'd like to loop through the results & echo out the email and associated manager. How do I do this?