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