I was wondering if there was a reason that the retrieved data is held as a stdClass Object rather than as an array?
Obviously the simplest solution is to manipulate it is json/encode/decode to return an array.
$array = json_decode(json_encode($object), True);
However, I wondered if there was a particular reason for this form that I don't yet understand, and if not if there could be a way to flag the code to return an array rather than a stdClass Object?
I was wondering if there was a reason that the retrieved data is held as a stdClass Object rather than as an array?
Obviously the simplest solution is to manipulate it is json/encode/decode to return an array.
$array = json_decode(json_encode($object), True);
However, I wondered if there was a particular reason for this form that I don't yet understand, and if not if there could be a way to flag the code to return an array rather than a stdClass Object?