phpはアップロードされたファイルのサフィックスをどのように取得しますか?

 $temp_arr = explode(".", $file_name);
 $file_ext = array_pop($temp_arr);
 $file_ext = trim($file_ext);
 $file_ext = strtolower($file_ext);

転送元:https//blog.csdn.net/xuyaokun123/article/details/51816309

おすすめ

転載: blog.csdn.net/z3287852/article/details/111564240