/ Published in: PHP

Pass in object. Returns array.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function object_to_array($object){ $new = NULL; } foreach ($object as $key => $val) { $new[$key] = $this->object_to_array($val); } } else { $new = $object; } return $new; }
Comments
