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-2025