Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

String.trimLeft

trimLeft($trimChars = '')

Description

Remove all leading whitespace characters, including newlines.

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

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

See Also