Skip to content

操作文件的相关函数 https://www.php.net/manual/zh/ref.filesystem.php

php
//获取到所有的php文件
$files=glob("*.php");
//取出文件名
pathinfo($file, PATHINFO_FILENAME);
//取出文件的后缀
pathinfo($file, PATHINFO_EXTENSION);

Released under the MIT License.