| File::skipRoot() (Previous) | (Next) File::stripTrailingSeparators() | ||||
| |
|||||
|
|||||
This method removes the leading directory separator (like "/" on *nix) from a path name.
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.
Example 44-1. Using File::stripLeadingSeparators()
This example will print home/foo/lala/. |
| File::skipRoot() (Previous) | (Next) File::stripTrailingSeparators() | ||||||||
| |
|||||||||
|
|||||||||