Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple filtering of phone numbers
````php
<?php
$phoneNumber = '(202) 555-2041';
$filterPhone = preg_repace('/[^0-9]+/','', $phoneNumber);
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.