I have the following part of PHP object class:
stdClass Object (
[data] => Array (
[0] => stdClass Object (
[id] => 1194760
.....
I am trying to extract all values for id. When I echo $cronJobUrlList->data[0]->id I do get a value but only for the first. When I try the following nothing is returned.
foreach ($cronJobUrlList->data as $data) {
foreach ($data->id as $cronId) {
echo $cronId;
}
}
I would like to obtain the id value for every entry. I never worked with object classes before.
foreach ($cronJobUrlList->data as $data) { echo $data->id; }?