What is the function in PHP that can be used to concatenate values into a single variable?

To concatenate values into a single variable in PHP, you can use the dot (.) operator. This operator is used to concatenate strings together. Simply place a dot between the variables or strings you want to concatenate. This will combine the values into a single variable.

// Concatenating values into a single variable
$value1 = "Hello";
$value2 = "World";
$combined = $value1 . " " . $value2;
echo $combined; // Output: Hello World