validate_numeric

Checks if a value is numeric.

Parameters
mixed $value

The value being checked

#
Returns
boolean

TRUE if var is a number or a numeric string, FALSE otherwise.