Alnum(一部日本語) Zend_Validate_Alnum により、 与えられた文字列がアルファベットおよび数字だけを含むかどうか検証できます。 検証したい入力に対する長さの制限はありません。 (訳注:ここでいうアルファベットおよび数字、とは各言語で使われる文字および数字の集合を意味します。英数字ではありません Zend_Validate_Alnum でサポートされるオプション 下記のオプションが Zend_Validate_Alnum でサポートされます。 allowWhiteSpace: 空白文字が許されるかどうか。 このオプションの既定値は FALSE です。 基本的な使用法 下記は基本的な使用例です。 isValid('Abcd12')) { // value contains only allowed chars } else { // false } ]]> 空白を使用 Per default whitespaces are not accepted because they are not part of the alphabet. Still, there is a way to accept them as input. This allows to validate complete sentences or phrases. To allow the usage of whitespaces you need to give the allowWhiteSpace option. This can be done while creating an instance of the validator, or afterwards by using setAllowWhiteSpace(). To get the actual state you can use getAllowWhiteSpace(). true)); if ($validator->isValid('Abcd and 12')) { // value contains only allowed chars } else { // false } ]]> 別の言語を使用 When using Zend_Validate_Alnum then the language which the user sets within his browser will be used to set the allowed characters. This means when your user sets de for german then he can also enter characters like ä, ö and ü additionally to the characters from the english alphabet. Which characters are allowed depends completly on the used language as every language defines it's own set of characters. 実際には、それらの固有の文書で受け付けられない3つの言語があります。 それらの言語は、Korean日本語中国語です。 because this languages are using an alphabet where a single character is build by using multiple characters. これらの言語を使用する場合、入力は英語のアルファベットを使用した検証のみ行なわれます。