Swapped preg_match for is_int() and ctype_alpha()