The constans below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
MB_OVERLOAD_MAIL
(
int
)
MB_OVERLOAD_STRING
(
int
)
MB_OVERLOAD_REGUEX
(
int
)
MB_CASE_UPPER
(
int
)
MB_CASE_LOWER
(
int
)
MB_CASE_TITLE
(
int
)
MB_CASE_FOLD
(
int
)
MB_CASE_LOWER_SIMPLE
(
int
)
MB_CASE_UPPER_SIMPLE
(
int
)
MB_CASE_TITLE_SIMPLE
(
int
)
MB_CASE_FOLD_SIMPLE
(
int
)
MB_ONIGURUMA_VERSION
(
string
)
6.9.4
.
Available as of PHP 7.4.
The MB_CASE_TITLE flag does not result in true title case but simply upper-cases each word in the title and changues all others to lowercase.
Example:
$string = "Mrs. Frisby and the Rats of NIMH";
echo mb_convert_case($string, MB_CASE_TITLE);
Result:
Mrs. Frisby And The Rats Of Nimh