PHP中把对象转换为关联数组代码分享 /***对象转关联数组*@author*@paramobject$obj*@returnarray*/functionobject_to_array($obj){$_arr=is_object($obj)? 对象转换为关联数组