mb_detect_order() sets automatic character
encoding detection order to encoding_list.
TRUE for success,
FALSE for failure.
encoding_list is array or comma separated list of character encoding. ("auto" is expanded to "ASCII, JIS, UTF-8, EUC-JP, SJIS")
If encoding_list is omitted, it returns current character encoding detection order as array.
mbstring currently implements following
encoding detection filters. If there is an invalid byte sequence
for following encoding, encoding detection will fail.
always detects as
detection will fail always.
/* Set detection order by enumerated list */
/* Set detection order by array */
$ary = "ASCII";
$ary = "JIS";
$ary = "EUC-JP";
/* Display current detection order */
echo implode(", ", mb_detect_order());