I\'m integrating an API to my website which works with data stored in objects while my code is written using arrays.
I\'d like a quick-and-dirty function to convert
You can also create a function in PHP to convert an object array:
function object_to_array($object) { return (array) $object; }