File::stripLeadingSeparators()

File::stripLeadingSeparators() -- strip leading separators from a path

Synopsis

require_once 'File.php';

string File::stripLeadingSeparators (string $path [, string $separator = DIRECTORY_SEPARATOR])

Beschreibung

This method removes the leading directory separator (like "/" on *nix) from a path name.

Parameter

Rückgabewert

This methods returns the given path name without a leading directory separator.

Hinweise

Diese Methode kann statisch aufgerufen werden.

Beispiel