File::skipRoot() (Previous) (Next) File::stripTrailingSeparators()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

File::stripLeadingSeparators()

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

Opis

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

Parametr

  • string $path - the path name where the leading separator should be removed from.

  • string $separator - optional string that defines the separator. This parameter defaults to the value of the constant DIRECTORY_SEPARATOR that is pre-defined by PHP.

Zwracana wartość

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

Uwagi

Ta funkcja może być wywołana statycznie.

File::skipRoot() (Previous) (Next) File::stripTrailingSeparators()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.