'
`) or double quotes (`"
`).<?php
$name = "John";
echo "Hello, $name!";
?>
In this example, the string "Hello, $name!
" contains a variable (`$name
`) which is interpolated into the string. When the code is executed, the output will be:
Hello, John!
<?php
$name = 'Jane';
echo 'Hello, ' . $name . '!';
?>
In this example, the string "Hello, " is concatenated with the variable `$name
` and the string "!
" using the `.
` operator. The output will be :
Hello, Jane!
\n
`) or a tab (`\t
`):<?php
echo "First line.\nSecond line.\nThird line.";
?>​
Output :First line.
Second line.
Third line.​