<?php
$str = '(21)1234-5678';
$substituirIsso = array('-', ')', '(');
PD9waHAKCgkkc3RyID0gJygyMSkxMjM0LTU2NzgnOwoJJHN1YnN0aXR1aXJJc3NvID0gYXJyYXkoJy0nLCAnKScsICcoJyk7CgkkcG9ySXNzbyA9IGFycmF5KCcnKTsKCWVjaG8gc3RyX3JlcGxhY2UoJHN1YnN0aXR1aXJJc3NvLCAkcG9ySXNzbywgJHN0cik7