标签:
<?php function ObjectToArray($array) { if(is_object($array)) { $array = (array)$array; } if(is_array($array)) { foreach($array as $key=>$value) { $array[$key] = ObjectToArray($value); } } return $array; } ?>
标签:
原文地址:http://www.cnblogs.com/lizhaoyao/p/5832918.html