标签:logs 地方 https log turn 错误 style array fun
//参考网上 但是别人给的方法有错误的地方 public function eleme_callback(){ $res = (object) array(‘1‘ => ‘foo‘); $data = $this->object_array($res); } public function object_array($array) { if(is_object($array)) { $array = (array)$array; } if(is_array($array)) { foreach($array as $key=>$value) { $array[$key] = $value; } } return $array; }
原文出处:https://www.cnblogs.com/yangzailu/p/9174043.html
标签:logs 地方 https log turn 错误 style array fun
原文地址:https://www.cnblogs.com/phpcurd/p/9175953.html