To check if a string ($s) is a representation of an integer (including representations is scientific notation and negative numbers), you can use the following test, provided that you do not expect values that are out of bounds for an integer.is_numeric($s) && floatval($s) == intval(floatval($s))If the test returns true, the string is a representation of an integer.is_numeric (if it works as intende