|

Checking if string contains numbers

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

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *