Clean Phone PHP Remove Parentheses and Dashes

A Short Snippet to Clean Phone from Special Characters. Remove Parentheses and Dashes.

This is a short snippet on how to clean a phone number from Dashes and Paranteses. Use this to clean phones on the fly. 

$ph_number = '(619) 584-5555';
$phone = preg_replace('/[^dxX]/', '', $ph_number);