Remove All Non-Numeric Characters from String using PHP April 23, 2021 PHP 0 Comments 407 Views preg_replace function <?php $text = 'Number: +(123) 726-632'; $result = preg_replace('/\D/', '', $text); echo $result;
Leave a Comment
Cancel reply