生成縮略圖模塊封裝這一節凝問。。。
$mime=image_type_to_mime_type($imagetype);
$createFun=str_replace("/", "createfrom", $mime);
$outFun=str_replace("/", null, $mime);
$src_image=$createFun($filename);
課程中上面四行代碼理解不了,斜線替換是用來做什么的呢?
$mime=image_type_to_mime_type($imagetype);
$createFun=str_replace("/", "createfrom", $mime);
$outFun=str_replace("/", null, $mime);
$src_image=$createFun($filename);
課程中上面四行代碼理解不了,斜線替換是用來做什么的呢?
2015-09-04
舉報
2015-09-28
自己百度下,imagejpg和imagecreatefromjpg兩個函數!