Answers for "php check if string contains certain amount of numbers"

PHP
1

check if includes numbers php

if (preg_match('~[0-9]+~', $string)) {
    echo 'string with numbers';
}
Posted by: Guest on October-26-2020

Code answers related to "php check if string contains certain amount of numbers"

Browse Popular Code Answers by Language