网友收藏php获取文件扩展名的方法-CSDN博客文章浏览阅读390次。1function get_extension($file){ return substr(strrchr($file, '.'), 1); }2、function get_extension($file){ return substr($file, strrpos($file, '.')+1); strrpos获得$file中特定字符最后出现的位置}... 2023-11-12 06:02 评论 0 阅读 阅读全文