Answers for "php check that string contains text_number"

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 that string contains text_number"

Browse Popular Code Answers by Language