PHP function is_numeric()
Availability in PHP 4.0 Finds whether a variable is a number or a numeric string Parameters Parameter Data type Default value Note $var mixed not The variable being evaluated. Return values bool true if var is a number or a numeric string, false othe…