satie83 on 03/22/12
Last Edited at 03/22/12 10:25pm
function object_to_array($data){ if(is_array($data) || is_object($data)) { $result = array(); foreach($data as $key => $value) { $result[$key] = $this->object_to_array($value); } return $result; } return $data;}
URL: http://codesnippets.joyent.com/posts/show/1641
Report this snippet Tweet
Comment:
You need to login to post a comment.