PHP object转array 2018-02-16T00:54:00 <?php function object2array($object) { if (is_object($object)) { foreach ($object as $key => $value) { $array[$key] = $value; } } else { $array = $object; } return $array; } ?> 当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »