Php If String Contains Numbers

I need to check whether a string contains numbers.
Php if string contains numbers. 0xf4c3b00c and binary e g. Finds whether the given variable is numeric. The strspn function returns the number of characters found in the string that contains only characters from the charlist parameter. This tutorial will help you to check if a string contains any substring in php programming language.
0b10100111001 notation is not allowed. This function is binary safe. Thus 0123 45e6 is a valid numeric value. Comparison operators if you compare a number with a string or the comparison involves numerical strings then each string is converted to a numberand the comparison performed numerically.
For example you want to run a specific line of code only if an input string contains another substring in it. Numeric strings consist of optional whitespace optional sign any number of digits optional decimal part and optional exponential part. These rules also apply to the. What would be the best way to achieve this.
How would i write a php code line that would determine if a string contains any numbers 0 9.