require_once 'File.php';
string File::skipRoot (string $path)
string File::skipRoot
This method strips the root directory from $path.
string $path - the path to be processed.
If the path is absolute, this method returns the processed path, otherwise, it returns the path untouched.
This function can be called statically.
File::isAbsolute()
Example 30-1. Using File::skipRoot()
<?php require_once 'File.php'; echo File::skipRoot("/home/foo/bar"); ?>
This example prints out home/foo/bar.