string File::skipRoot (
string $path
)
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.
Using File::skipRoot()
<?php
require_once 'File.php';
echo File::skipRoot("/home/foo/bar");
?>
This example prints out home/foo/bar
.