Search Results
Get aliases of a known encoding type
Mar 29, 2023 · Return value: The numerically indexed array for encoding aliases will be returned. Example 1: The following code demonstrates the mb_encoding_aliases () function.
In PHP, mb_encoding_aliases () is used to get the aliases of a known encoding type. This function returns all alternative names for a specified character encoding, which is useful when working with different systems that may use varying naming conventions for the same encoding.
Examples of mb_encoding_aliases. Info and examples on mb_encoding_aliases PHP Function
Simple usage example of `mb_encoding_aliases ()`. mb_encoding_aliases is a PHP function that retrieves the aliases associated with a specific known encoding type. It allows you to obtain alternate names or abbreviations for a given encoding type, which can be useful in cases where you need to handle text encoding conversions or detect specific encoding types in your application.
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] => cp367 [9 ...
mb_encoding_aliases Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8 Get aliases of a known encoding type
