I want to test to see if a POST from a form can be turned into an integer.
- is_int will be false because it's posted as a string.
- is_int((int)$var) will return true even if var = "cat" because (int)'cat' just turns cat into 0.
How to I do this? It's such a simple thing to do in strongly typed languages.