Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Zend 框架中是否有一个标准验证器用于我只想作为数字的输入?它是我注册表中的年龄字段,所以我显然只想要数字。
像 addValidator('NumbersOnly');
谢谢
您可以使用 Digits 验证器类
addValidator('Digits')