2011-12-01から1日間の記事一覧

PHPで全角ひらがなカタカナがあるかを判定

PHP

UTF-8のコードにおいて、全角のひらがな、カタカナ、句読点(、。)のどれかが1文字以上あれば真。 $a = array( 'The quick brown fox jumps over the lazy dog.', 'The quick brown fox jumps over the lazy dog. !?#$%&', 'The quick brown fox jumps over t…