In PHP, how can round brackets in a search pattern be utilized to reference and modify specific parts of a string?

To reference and modify specific parts of a string using round brackets in a search pattern in PHP, you can use regular expressions with the `preg_match()` function. By enclosing the parts of the pattern you want to capture in round brackets, you can create capture groups that allow you to extract and manipulate specific portions of the matched string.

$string = "Hello, World!";
$pattern = '/(Hello), (World)!/';
if (preg_match($pattern, $string, $matches)) {
    $greeting = $matches[1]; // "Hello"
    $recipient = $matches[2]; // "World"
    echo "Greeting: $greeting, Recipient: $recipient";
}