Query: mb_encoding_aliases
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MB_ENCODING_ALIASES(3) 1 MB_ENCODING_ALIASES(3) mb_encoding_aliases - Get aliases of a known encoding typeSYNOPSISarray mb_encoding_aliases (string $encoding)DESCRIPTIONReturns an array of aliases for a known $encoding type.PARAMETERSo $encoding - The encoding type being checked, for aliases.RETURN VALUESReturns a numerically indexed array of encoding aliases on success, or FALSE on failureERRORS/EXCEPTIONS Emits an E_WARNING level error if $encoding is unknown.EXAMPLESExample #1 mb_encoding_aliases(3) example <?php $encoding = 'ASCII'; $known_encodings = mb_list_encodings(); if (in_array($encoding, $known_encodings)) { $aliases = mb_encoding_aliases($encoding); print_r($aliases); } else { echo "Unknown ($encoding) encoding. "; } ?> The above example will output something similar to: 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] => csASCII )SEE ALSOmb_list_encodings(3). PHP Documentation Group MB_ENCODING_ALIASES(3)
Related Man Pages |
---|
mb_strrpos(3) - php |
mb_convert_variables(3) - php |
mb_encoding_aliases(3) - php |
mb_strpos(3) - php |
tidy_parse_file(3) - php |
Similar Topics in the Unix Linux Community |
---|
aliases |
retireving ip aliases |
File encoding in Unix |
get the file encoding |
AIX and Linux difference (character set) |