title: PHP - recursive Array to Object?
body: <p>Is there a way to convert a multidimensional <code>array</code> to a <code>stdClass</code> object in PHP?</p>
  
  <p>Casting as <code>(object)</code> doesn't seem to work recursively.  <code>json_decode(json_encode($array))</code> produces the result I'm looking for, but there has to be a better way...</p>