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
ExtractPathFromPath
result_type CBXVirtualIo::ExtractPathFromPath( string $path );
The method returns path to file or folder, receiving the path on input. It is recommended to convert path into normal format first. Non-static method.
Parameters
Parameter | Description |
---|---|
path | Path |
Example
echo $io->ExtractPathFromPath("/path1/index.php"); // returns /path1
© «Bitrix24», 2001-2024
Up