As from the phone to remove parenthesis, spaces and dashes?

I have $company_phone = '+7 (000) 000-00-00';
How this line to make the phone in the format +7000000000?
July 9th 19 at 13:27
1 answer
July 9th 19 at 13:29
Too clever by half with a solution. Looking for a regular expression.
It was easier to sort out the numbers.
<a href="tel:+<?php echo preg_replace(" [^0-9] ", ", $company_phone) ?>"></a>

Find more questions by tags PHP