最近用到一些简单的对象与数组的相互转换的问题,采用递归写了两个方法如下 function arrayToObject($e){ if( gettype($e)!='array' ) return; foreach($e as $k=>$v){ if( get