摘要: function array2object($array) { if (is_array($array)) { $obj = new StdClass(); foreach ($array as $key => $val){ $obj->$key = $val; } } else { $obj = $array; } return $obj; ... 阅读全文
posted @ 2017-08-17 11:23 枫叶那个飘啊 阅读(182) 评论(0) 推荐(0) 编辑