$func = 'image'.$type;
//處理path # $name = uniqid() .'.'.$type;
}else{
# $pathinfo = pathinfo($soruce);
);
$name = $pathinfo[' filename'].'.'.$type;
}
,$ ( $soruceRes,$path);
imagedestroy($soruceRes);
}
$func = 'image'.$type;
$func($soruceRes,$path);
$func是動態拼接的函式名稱。