/ Published in: PHP
Expand |
Embed | Plain Text
function object2array($mixed) { foreach($mixed as $key => $val) { $new[$key] = object2array($val); } } else $new = $mixed; return $new; }
You need to login to post a comment.
frederichoule on 04/01/11
object array encode json convert decode
1 person have marked this snippet as a favorite
function object2array($mixed) { foreach($mixed as $key => $val) { $new[$key] = object2array($val); } } else $new = $mixed; return $new; }
You need to login to post a comment.