/* 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());
?php / * Remplace l'ordre de détection par une liste énumérée * / mb_detect_order("eucjp-win,sjis-win,UTF-8"); / * Remplace l'ordre de détection par un tableau * / $ary[] = "ASCII"; $ary[] = "JIS"; $ary[] = "EUC-JP"; mb_detect_order($ary); / * Affiche l'ordre de détection courant * / echo implode(", ", mb_detect_order());?