ltrim

PHP 4, PHP 5, PHP 7, PHP 8
ltrim - Strip whitespace (or other characters) from the beginning of a string
Ltrim Online Tool
Manual
Code Examples

Example #1 Usage example of ltrim

Result: 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 "
PHP Version:


Example #2 of ltrim

PHP Version:


Function ltrim:

Strings Functions

Most used PHP functions