/ Published in: PHP
Pass in object. Returns array.
Expand |
Embed | Plain Text
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
Subscribe to comments
You need to login to post a comment.

Basically does the same thing.