How can variables be concatenated in PHP to create a new variable?

To concatenate variables in PHP, you can use the dot (.) operator to combine the values of two or more variables into a new variable. This is useful when you want to create a new variable that contains the values of existing variables or strings. Example:

$firstName = "John";
$lastName = "Doe";

$fullName = $firstName . " " . $lastName;

echo $fullName; // Output: John Doe