Quantcast
Channel: User Industrial - Stack Overflow
Viewing all articles
Browse latest Browse all 56

PHP: Is_numeric returns false on 0 [closed]

$
0
0

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 camp, or are there some nice, handy feature for this out there already?

Thanks!


Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>