General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
CombinePath
Copy
CreateDirectory
Delete
DirectoryExists
ExtractNameFromPath
ExtractPathFromPath
FileExists
GetDirectory
GetFile
Move
RelativeToAbsolutePath
SiteRelativeToAbsolutePath
ValidateFalenameString
ValidatePathString
ExtractNameFromPath
string CBXVirtualIo::ExtractNameFromPath( string $path );
The method returns file or folder name, receiving path on input. It is recommended to convert path to normal format first. Non-static method.
Parameters
Parameter | Description |
---|---|
path | Path |
Example
echo $io->ExtractNameFromPath("/path1/index.php"); // returns index.php
© «Bitrix24», 2001-2024
Up