Function: [man]is_int[/man] and [man]is_double[/man]
Code Example:
<?
$x = 9.44;
if ( is_int($x) || is_double($x) ) {
echo "$x is a number";
} else {
echo "$x is not a number";
}
?>
You did not mention if you're looking for doubles or integers or both so I provided code for both.
EDIT: You also might want to check out [man]is_numeric[/man]. There's a whole slew of "is_" functions that should help.