File::skipRoot()

File::skipRoot() -- strips the root directory from a given path

Synopsis

require_once 'File.php';

string File::skipRoot (string $path)

Beschreibung

This method strips the root directory from $path.

Parameter

string $path - the path to be processed.

Rückgabewert

If the path is absolute, this method returns the processed path, otherwise, it returns the path untouched.

Hinweise

Diese Methode kann statisch aufgerufen werden.

Siehe auch

File::isAbsolute()

Beispiel