is_numeric doesnt check strings for numbers. You need to use  preg_match('#[0-9]#',$string)