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
To convert an object into array just cast it explicitly:
$name_of_array = (array) $name_of_object;