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

View this page in Last updated: Sun, 17 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

File::stripLeadingSeparators()

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

Description

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

Parameter

  • 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.

Return value

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

Note

This function can be called statically.

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

Download Documentation Last updated: Sun, 17 Aug 2008
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.