Home Article 获取文件后缀的几种方法

获取文件后缀的几种方法

Source:获取文件后缀的几种方法 Release time:2019-11-14 Author:Mr.赵 Reading volume:13
        $a='文件路径';
$b=substr(strrchr($a, '.'), 1);
$c=substr($a, strrpos($a, '.')+1);
$e=pathinfo($a)['extension'];
$f=pathinfo($a, PATHINFO_EXTENSION);
  
I want to comment
Leave a message
http://boke.zhaozhiqi.top/index.php/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!