함수 utf8 strlen()

Jmnote (토론 | 기여)님의 2016년 11월 7일 (월) 09:44 판 (→‎PHP)
utf8_strlen

1 PHP

function utf8_strlen($str) { return mb_strlen($str, 'UTF-8'); }

echo utf8_strlen('12345');
# 5
echo utf8_strlen('안녕하세요');
# 5

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}