PHP » PYTHON |
login |
register |
about
|
result = myStr.lstrip() result = myStr.lstrip(charlist) ltrim(PHP 4, PHP 5) ltrim — Strip whitespace (or other characters) from the beginning of a string Description
string ltrim
( string $str
[, string $charlist
] )
Strip whitespace (or other characters) from the beginning of a string. Parameters
Return ValuesThis function returns a string with whitespace stripped from the beginning of str . Without the second parameter, ltrim() will strip these characters:
Changelog
Examples
Example #1 Usage example of ltrim()
<?php The above example will output: string(32) " These are a few words :) ... " string(16) " Example string " string(11) "Hello World" string(30) "These are a few words :) ... " string(30) "These are a few words :) ... " string(7) "o World" string(15) "Example string "
|
more
Recently updated
more
Most requested
more
Last requests
|