pathinfo
pathinfo
(PHP 4 >= 4.0.3, PHP 5, PHP 7)
pathinfo — Returns information about a file path
Description
mixed pathinfo ( string $path [, int $options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME ] )
pathinfo() returns information about path
: either an associative array or a string, depending on options
.
Note:
For information on retrieving the current path info, read the section on 登录查看完整内容