SplFileInfo::getBasename(PHP 5 >= 5.2.2) SplFileInfo::getBasename — Gets the base name of the file Описание
public string SplFileInfo::getBasename
([ string $suffix
] )
This method returns the base name of the file, directory, or link without path info. Список параметров
Возвращаемые значенияReturns the base name without path information. Примеры
Пример #1 SplFileInfo::getBasename() example
<?phpРезультатом выполнения данного примера будет что-то подобное: string(8) "file.txt" string(8) "file.txt" string(4) "file" |
||