Php regular replacement of values between symbols

if there is the string $a = "(a.b) b.c (c.d.e)"
now put the value in parentheses. Remove it, but outside the parentheses. Keep, the result that
needs to get is (ab) b.c (cde)

what should I do with it

May.11,2022

it is convenient to use preg_replace_callback method

$string = '(a.b)b.c(c.d.e)';
$newString = preg_replace_callback('/\(.*?\)/', function($subStr) {
    return str_replace('.', '', $subStr[0]);
}, $string);
echo $newString;

result

(ab)b.c(cde)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1c962-32660.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1c962-32660.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?