Last active
November 17, 2019 08:49
-
-
Save RiodeJaneiroo/73df53957b0be62d762166206a18a618 to your computer and use it in GitHub Desktop.
[Replace number phone] #php #replace #phone #wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cleanNumberPhone($string) { | |
$newString = preg_replace('~\D+~','', $string); | |
return $newString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment