Skip to content
Advertisement

Decimal validation + PHP?

How to do decimal number validation in PHP?

(The decimal point is optional) it should accept … 0 , 1 , 2 , 0.123 , 0.2 , 12.34 etc.

Advertisement

Answer

Would any of these suit your needs?

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement