pathinfo 文件路径的信息

最后更新于:2022-04-02 02:30:32

[TOC] ### pathfile 解析文件名 ``` $path_parts = pathinfo('/www/htdocs/inc/lib.inc.php'); /*[ 'dirname' => '/www/htdocs/inc', 'basename' => 'lib.inc.php', 'extension' => 'php', 'filename' => 'lib.inc', ]*/ ```
';