Because I'm not that good at English, I couldn't find a better title for this thread.
But here we go: My problem is that the comparison operators fail in some situations.
I've got an input field where the visitors enter a number. I have limited the size of the number to 10 000 by doing the following:
if ($value <= "10000") {
//continue
} else {
//error output
}
The $value is correct, and there is nothing wrong with the code. The limit does work. But if the visitor types in a 601-digit long number in the input field, it goes right through the $value-limit. How is this possible? Any other value doesn't have this problem, but with 601-digit number(maybe with bigger numbers also) it gets through.
Is this a common bug in PHP?