answersLogoWhite

0


Best Answer

The is_numeric functions works just fine. It returns trueor false based on whether the input variable is numeric or not. However, it is possible that unexpected results may occur when evaluating something like "34e6", which is a valid number (34,000,000). If you must know if a variable contains only digits 0-9, consider preg_match("/^\d+$/", $input) or similar.

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why does is numeric function in PHP not properly evaluate numeric value?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do numbers affect the trigonometric function?

Trigonometric functions are defined from a numeric domain to a numeric range. So the input number determines whether or not the function is defined for that value and, if so, what the value of the function is.


How do you evaluate a function for a given input value?

Substitute the given value for the argument of the function.


Which function can be used to check whether the value is numeric or not?

In Excel you can use the ISNUMBER() function.


The ABS SQL function used for?

To return the absolute, positive value of a numeric expression.


How do you convert numeric value into alpha value in c plus plus programming language?

use the _itoa function


Define the numeric value of perception?

numeric perception is a value of perception to the numeric value


How do you evaluate functions?

To evaluate a function means to replace the variable with some value, and calculate the value of the function. For example, in the parabola y = x2 (or, using functional notation, f(x) = x2), if you replace x with 10, and calculate x2, you are evaluating the function for that specific value.


To evaluate a function for a specific value substitute the value in for what?

You substitute the variable for its value. Or you substitute the variables for each of the values.


What is the numeric value for 0509882096?

The numeric value is 509882096


What is the numeric value of 165cm?

The numeric value is 165.


How do write 10000 in numeric value?

10000 is a numeric value.


What is the numeric value of 6 years?

The numeric value is 6.