Zend_Validator question?
how to check letters and spaces using Zend Framework?
+1
sreenu
source
to share
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
dcousineau
source
to share
I think Zend_Validate_Regex is the best for this situation
0
Irmantas
source
to share