Stringy\Stringy::trimLeft PHP Метод

trimLeft() публичный метод

Supports the removal of unicode whitespace. Accepts an optional string of characters to strip instead of the defaults.
public trimLeft ( string $chars = null ) : Stringy
$chars string Optional string of characters to strip
Результат Stringy Object with a trimmed $str
    public function trimLeft($chars = null)
    {
        $chars = $chars ? preg_quote($chars) : '[:space:]';
        return $this->regexReplace("^[{$chars}]+", '');
    }