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
CombinePath
string CBXVirtualIo::CombinePath( string $path1 [, string $path2 [, string $path3 [, ...]]] );
The method combines parts of path in a single path. Number of parameters is arbitrary. After the path is combined, it's converted into a normal forrmat. Non-static method.
Example
echo $io->CombinePath("/", "index.php"); // returns /index.php echo $io->CombinePath("/", "/path1/", "\\path2/", "path3\\. ./path4/"); // returns /path1/path2/path4
© «Bitrix24», 2001-2024
Up