Skip to content

Instantly share code, notes, and snippets.

@bwonur
Created December 25, 2019 11:36
Show Gist options
  • Select an option

  • Save bwonur/db316ff9d876bc45b94b092718f2f1ce to your computer and use it in GitHub Desktop.

Select an option

Save bwonur/db316ff9d876bc45b94b092718f2f1ce to your computer and use it in GitHub Desktop.
PHP Remove Phone formating
<?php
$phone = "PHONE FORMAT";
$phone = preg_replace('/\D+/', '', $phone);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment