Temizlemek için replace'de kullanabilirsin preg'de kullanabilirsin örnek;
<?php
$input = "(test)";
preg_match_all('/\((.*?)\)/', $input, $matches);
print_R($matches);