mb_ltrim
(PHP 8 >= 8.4.0)
Strip whitespace (or other characters) from the beginning of a string
Description
Performs a multi-byte safe ltrim() operation. Strip whitespace (or other characters) from the beginning of a string.
Without the second parameter, mb_ltrim() will strip these characters:
Unicode
Parameters
stringThe input string.
charactersOptional
encodingParameter
Return Values
This function returns a string with whitespace stripped from the beginning of string.