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

mb_strtoupper

Description

The mb_strtoupper of Multibyte String for PHP make a string uppercase.

Syntax

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

Parameters

string

The string being uppercased.

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 uppercase.

Examples

1 · string

<?

$string = "CASE case Case ß";

$return = mb_strtoupper($string);

echo $return;

?>
CASE CASE CASE SS

2 · encoding

<?

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

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

echo $return;

?>
CASE CASE CASE SS
HomeMenu