-
- function chkbm($string){
- ($string === iconv(UTF-8, $c, iconv($c, UTF-8, $string))) { // エンコーディングを変換した後は同じですか?
- return null;
- }
- ?>
-
-
-
-
- http://www.bkjia.com/PHPjc/486172.html
- www.bkjia.com
- true
http://www.bkjia.com/PHPjc/486172.html
技術記事
?php function chkbm($string){ $bm = array(ASCII, GBK, UTF-8); foreach($bm as $c){ if( $string === iconv(UTF-8, $c, iconv( $c, UTF-8, $string))){//エンコード変換後の戻り値は等しいか...