how can create pattern verify number doesn't happen in text input in php
000000000 111111111 222222222 333333333 444444444 555555555 666666666 777777777 888888888 999999999
it's like:
if(preg_match('/\d{9,}/', $input)){ // 9 or more digits echo 'problem'; } else{ echo 'no problem'; }
Comments
Post a Comment