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
What about get_object_vars($obj)? It seems useful if you only want to access the public properties of an object.
get_object_vars($obj)
See get_object_vars.