A string comes with a phone number in this format.

+7(777) 133 38 22 

How to remove +() characters and spaces from the given string?

    1 answer 1

    And google? $string = str_replace(array('+', '(', ')', ' '), '', $string);