Situation is this. I'm trying to fix some code that is provided by an external developer. Locally it works fine, but on the server it thinks that "18.9 < 18.9". I don't/can't change too much in the code. I just want to make the comparison work reliably. No single-line solution I assume though... :S
What should I do if I just want to compare two values, let's say $some->method() and $someVar, and I don't know what type to expect? It's always a unit of money though. I just thought adding floatval() would help... :)