HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

mb_strtolower

Description

The mb_strtolower of Multibyte String for PHP make a string lowercase.

Syntax

mb_strtolower(
    string $string,
    ?string $encoding = null
): string

Parameters

string

The string being lowercased.

encoding

The encoding parameter is the character encoding. If it is omitted or null, the internal character encoding value will be used.

Return

Returns string with all alphabetic characters converted to lowercase.

Examples

1 · string

<?

$string = "CASE case Case ß";

$return = mb_strtolower($string);

echo $return;
case case case ß

2 · encoding

<?

$string = "CASE case Case ß";
$encoding = 'UTF-8';

$return = mb_strtolower($string, $encoding);

echo $return;
case case case ß