PHP多图上传排列

347
//组合排序
    public function handle($data){
    	$image = $data['thumb'];
        $thumb = [];
        foreach($image['img'] as $k=>$v){
          $thumb[] = [
            'img'=>$v,
            'alt' =>$image['alt'][$k],
          ];
        }
        $data['thumb'] = serialize($thumb);
        $data['img'] = reset($image['img']);
        return $data;
    }