How does using '.$var.' in PHP affect the performance or readability of the code?

Using '.$var.' in PHP can affect the readability of the code as it breaks the flow of the string and can make it harder to read and maintain. Additionally, it can also have a slight impact on performance as PHP has to concatenate the string with the variable. To improve readability and performance, it's recommended to use double quotes and include variables directly within the string using curly braces.

// Original code using '.$var.'
$name = 'John';
$message = 'Hello, '.$name.', how are you?';

// Improved code using double quotes and curly braces
$name = 'John';
$message = "Hello, {$name}, how are you?";