Quote:
Originally Posted by Chompy
Well, I've been searching and stuff, I only found the answer to check if the number contains decimals, well I want to check if the float/string is a number, not a string or anything, anyone have an example or can tell me how to detect if a string/variable is a number?
|
PHP Code:
if (float(var) == var) {
// we have a number.
}