跳转到主要内容

mb-trim

mb_trim

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

ENTITY

string

mb_trim

string

string

string

null

characters

ENTITY

string

null

encoding

ENTITY

Performs a multi-byte safe trim operation, and returns a string with whitespace stripped from the beginning and end of string. Without the second parameter, mb_trim will strip these characters:

ENTITY

ENTITY

string
The string that will be trimmed.

characters
ENTITY

encoding
ENTITY

ENTITY

The trimmed string.

ENTITY

mb_ltrim

mb_rtrim

trim