I have the following object when i do print_r ($object):
stdClass Object
(
[id] => 234
[startTime] => 7:17 am
[endTime] => 10:00 pm
)
How would I access [startTime]?
I have tried
print_r($object->systemName);
which returns nothing (systemName is the title from the DB)
And
print_r($object[0]->systemName);
which returns an error:
Cannot use object of type stdClass as array