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

Leave a Reply

Your email address will not be published.