PHP mb_detect_encoding()

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:34 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))

1 개요

PHP mb_detect_encoding()
  • 문자 인코딩을 판별하는 PHP 함수
var_dump( mb_detect_encoding('hello') );
var_dump( mb_detect_encoding('안녕') );
# string(5) "ASCII"
# string(5) "UTF-8"

var_dump( mb_detect_encoding('hello', 'UTF-8') );
var_dump( mb_detect_encoding('안녕', 'UTF-8') );
# string(5) "UTF-8"
# string(5) "UTF-8"

2 같이 보기

3 참고

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