Version: v0.7.0 - Beta.  We welcome contributors & feedback.

String.trimLeft

trimLeft($trimChars = '') -> string

Description

Remove all whitespace characters (including newlines) from the beginning of the string.

$trimChars can be a string of characters to trim in addition to whitespace.

'  abc  '.trimLeft()     //= 'abc  '
'   $123'.trimLeft('$')  //= '123'

See Also