php remove all but numbers code example
Example: php remove all but numbers
// Original SOA
preg_replace('/[^0-9]/', '', '604-619-5135'); // Removes the dahses in 604-619-5135
preg_replace('/[^0-9]/', '', '7#sq7k*77dql'); // = 7777
// Original SOA
preg_replace('/[^0-9]/', '', '604-619-5135'); // Removes the dahses in 604-619-5135
preg_replace('/[^0-9]/', '', '7#sq7k*77dql'); // = 7777