PEAR-Handbuch | ||
---|---|---|
Zurück | Nach vorne |
This method removes the trailing directory separator (like "/" on *nix) from a path name.
string $path - the path name where the trailing 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.
Beispiel 39-1. Using File:stripTrailingSeparators()
This example will print /home/foo/lala. |
Zurück | Zum Anfang | Nach vorne |
File::stripLeadingSeparators() | Nach oben | File::unlock() |