Check if String Contains Only Numbers using PHP April 26, 2021 PHP 0 Comments 496 Views preg_match function <?php $text = '0210426'; $result = (bool) preg_match('/^\d+$/', $text); echo $result ? 'Yes' : 'No';
Leave a Comment
Cancel reply