Skip to content

Instantly share code, notes, and snippets.

@sugarHoge
Created June 14, 2013 07:16
Show Gist options
  • Save sugarHoge/5780056 to your computer and use it in GitHub Desktop.
Save sugarHoge/5780056 to your computer and use it in GitHub Desktop.
文字チェック
$i_target = mb_convert_encoding($i_target, 'UTF-8', 'JIS-win');
if (strlen($i_target) > 0) {
$trimCount = trim(mb_convert_kana($i_target, "s"));
if (strlen($trimCount) < 1) {
// 空白のみ
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment