首頁  >  問答  >  主體

$func 是什麼意思,怎麼來的

        $func = 'image'.$type;
        
        //處理path #            $name = uniqid() .'.'.$type;
        }else{
#            $pathinfo = pathinfo($soruce);
   ); 
            $name = $pathinfo[' filename'].'.'.$type;
        }
        
        ,$ ( $soruceRes,$path);
        
        imagedestroy($soruceRes);
        
     }

LiuBoLiuBo2586 天前1759

全部回覆(1)我來回復

  • PHP中文网

    PHP中文网2017-08-24 18:07:17

    $func = 'image'.$type;
    $func($soruceRes,$path);


    $func是動態拼接的函式名稱。

    回覆
    0
  • 取消回覆