We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Numericality and Digit validators

What's the real difference between them ?



34.6k
Accepted
answer

Digits, uses ctype_digit function which rejects values such as 1820.20 or -500

In the other hand numericality allows these valid numbers: