File::stripLeadingSeparators()
Параметр
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.
Возвращаемое значение
This methods returns the given path name without a leading directory separator.
Пример
Пример 40-1. Using File::stripLeadingSeparators()
This example will print home/foo/lala/. |
Пред. | Начало | След. |
File::skipRoot() | Уровень выше | File::stripTrailingSeparators() |