« centos7 network周り | メイン | smarty 文字列連結 »

2017年11月17日

UTF-8文字列の入力チェック

PHPの場合


function validate_utf8($input) {
return (bool)preg_match('//u', $input);
}


https://qiita.com/mpyw/items/f0628b35a368fa468775

投稿者 muuming : 2017年11月17日 11:55