I wrote a function. There is certain data in the dates. There is an array in this data and there are parameters such as id, number.. in it. So these are now objects, not arrays. I need to access "opened" and "loaded". In the figure, there are the controls I provide with dump and dd's. I have a very convoluted structure.
public function delayed_onHold($datas)
{
dump($datas);
$days = array();
$ldate = date('Y-m-d H:i:s');
foreach ($datas as $key => $value) {
dump($value);
foreach($value as $x => $val) {
dump(($val));
}
}
dd();
}
I tried $val["loaded"] or $val["opened"] but it gave an error that I can't access it because it is an object. How can I access them?