php check value 0 to 9 code example Example: php is variable a number if(is_numeric($what_am_i)){ //true }