$b = preg_replace("[\D]", "", $b);
Not only do I want to remove the hyphen, but as the code implies, remove everything but the digits.
$b = preg_replace("[\D]", "", $b);
|
|
|
$b = preg_replace("[(0-9)+]", "", $b);
$b = preg_replace("/\D/", "", $b);