Skip to main content

All Questions

Tagged with
11 votes
7 answers
24k views

PHP: Is_numeric returns false on 0 [closed]

Is_numeric() as well as is_int() returns false if the value is 0. What can i do instead to verify that a specific value is numbers only in PHP? Are we heading straight for the Regular Expressions ...
Industrial's user avatar
  • 42.8k