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


版本号 #2
由 壳壳虫 创建于 2026-10-31 17:54:37 UTC
由 壳壳虫 更新于 2026-10-31 17:54:38 UTC