跳转到主要内容

mb-ltrim

mb_ltrim

Strip whitespace (or other characters) from the beginning of a string

ENTITY

string

mb_ltrim

string

string

string

null

characters

ENTITY

string

null

encoding

ENTITY

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:

ENTITY

ENTITY

string
The input string.

characters
ENTITY

encoding
ENTITY

ENTITY

This function returns a string with whitespace stripped from the beginning of string.

ENTITY

mb_trim

mb_rtrim

ltrim