- mb_substr: documentation ( source)
- mb_regex_encoding: documentation ( source)
- mb_language: documentation ( source)
- mb_http_input: documentation ( source)
- mb_internal_encoding: documentation ( source)
- mb_http_output: documentation ( source)
<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_language('uni');
mb_regex_encoding('UTF-8');
$chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요';
$len = strlen($chars);
for ($i = 0; $i < $len; $i++) {
echo mb_substr($chars,$i,1).'|';
}