php if not number or float or integer code example Example: php is variable a number if(is_numeric($what_am_i)){ //true }