Do you know of a function that can check if a string contains an integer?
Here\'s how I\'d expect it to work:
holds_int(\"23\") // should return true
Other option
function holds_int($str) { return preg_match("/^-?[0-9]+$/", $str); }