title: Convert a PHP object to an associative array
body: <p>I'm integrating an API to my website which works with data stored in objects while my code is written using arrays.</p>
  
  <p>I'd like a quick-and-dirty function to convert an object to an array.</p>