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

mb_encoding_aliases

Description

The mb_encoding_aliases of Multibyte String for PHP get aliases of a known encoding type.

Syntax

mb_encoding_aliases(
    string $encoding
): array

Parameters

encoding

The encoding type being checked, for aliases.

Return

Returns a numerically indexed array of encoding aliases.

Examples

1 · encoding

<?

$encoding = 'ASCII';

$return = mb_encoding_aliases($encoding);

print_r($return);

?>
Array
(
    [0] => ANSI_X3.4-1968
    [1] => iso-ir-6
    [2] => ANSI_X3.4-1986
    [3] => ISO_646.irv:1991
    [4] => US-ASCII
    [5] => ISO646-US
    [6] => us
    [7] => IBM367
    [8] => IBM-367
    [9] => cp367
    [10] => csASCII
)
HomeMenu