5
votes

In the Zend Framework is there a standard validator for an input that I want to be numbers only? Its the age field in my registration form so I obviously only want numbers.

Something like addValidator('NumbersOnly');

Thanks

1

1 Answers

14
votes

You can use the Digits validator class

addValidator('Digits')