Zend_Validator question?
2 answers
Zend Framework has Zend_Validate_Alpha (as well as an alphanumeric version ).
It usually does not allow whitespace, but if you pass a class to Zend_Validate_Alpha'strue
constructor
it will allow whitespace. It's the same with Zend_Validate_Alnum .
For example:
$validator = new Zend_Validate_Alpha(true); //will allow whitespace and non number letters
+3
source to share