Answers for "if string contains number php"

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 "if string contains number php"

Browse Popular Code Answers by Language