Documentation

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