Is there a quick way to validate whole numbers for instance you can validatea number
if (is_numeric($x){output}else{output}
Thanks in advance