最赞回答 / 学点儿东西
原来的代码如下:foreach($uploadFiles as $uploadFile){ $arr1['pid']=$pid; $arr1['albumPath']=$uploadFile['name']; addAlbum($arr1); }只需要在 $uploadFiles as $uploadFile 前面加上(array)就可以了,如下:foreach((array)$uploadFiles as $upload...
2015-05-23