PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
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 38-1. Using File::skipRoot()
<?php require_once 'File.php'; echo File::skipRoot("/home/foo/bar"); ?>
This example prints out home/foo/bar.