File::skipRoot()

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

Referentiesamenvatting

require_once 'File.php';

string File::skipRoot (string $path)

Beschrijving

This method strips the root directory from $path.

Parameter

string $path - the path to be processed.

Return waarde

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

Note

Deze functie kan statisch worden aangeroepen.

Zie

File::isAbsolute()

Voorbeeld