Use ctype_digit instead of is_numeric