Home > PHP > Function > Multibyte String > mb_convert_case()

mb_convert_case()

mb_convert_case - Perform case folding on a string

Syntax

string mb_convert_case (string $str, int $mode, string $encoding)

Arguments

  • str - The string being converted.
  • mode - The mode of the conversion. It can be one of MB_CASE_UPPER, MB_CASE_LOWER, or MB_CASE_TITLE.
  • encoding - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.

Description

Performs case folding on a string, converted in the way specified by mode.

Version

PHP 4.3.0, 5

Return value

A case folded version of string converted in the way specified by mode.