I have a Curl query which outputs JSON as $response
$response = curl_exec($curl);
$response = json_decode($response, true);
I have turned this into the below Array:
Array
(
[results] => Array
(
[0] => Array
(
[jobId] => 41682277
[employerId] => 630007
[employerName] => ABC
[employerProfileId] =>
[employerProfileName] =>
[jobTitle] => Internal Sales Negotiator/Sales Executive
How can I loop through this array, to show each job on a website. I need to turn some of the fields into variables, for example, jobTitle
I have tried the below but nothing is output back;
foreach ($response as $job) {
foreach ($job->results as $record) {
$ID = $record->jobId;
echo"JobID= $ID<br>";
}
}