Do you just want to know if there is a number in the string (ie "abc123def" is true because "123" is in there), or do you want to know if it is only a number?
If the former, you can use something like
if (ereg("[0-9]", $string)) {
print "Contains a number";
}
If the latter, look into the is_numeric, is_int, is_float, etc in Chapter IV, Section LIX of the online manual.