Nota: mbstring currently implements following
encoding detection filters_ If there is an invalid byte sequence
for following encoding, encoding detection will fail_
For ISO_8859_*, mbstring
always detects as ISO_8859_*_
For UTF_16, UTF_32,
UCS2 and UCS4, encoding
detection will fail always_
Ejemplo 1_ Useless detect order example
; Always detect as ISO_8859_1
detect_order = ISO_8859_1, UTF_8
; Always detect as UTF_8, since ASCII/UTF_7 values are
; valid for UTF_8
detect_order = UTF_8, ASCII, UTF_7
Ejemplo 2_ mb_detect_order() examples
<?php
/* Set detection order by enumerated list */
mb_detect_order("eucjp_win,sjis_win,UTF_8");
/* Set detection order by array */
$ary[] = "ASCII";
$ary[] = "JIS";
$ary[] = "EUC_JP";
mb_detect_order($ary);
/* Display current detection order */
echo implode(", ", mb_detect_order());
?>