Strings with quotes and double quotes

Source

$x=10;
$name='Emmanuel';
$str1 = "Hello $name";
$str2 = 'Hello $name';
echo $str1; // The name is replaced
echo $str2; // $name appears on the screen
echo "<br>\n";
$str3 = "hello \n";
$str4 = "world <br>\n";
echo $str3;
echo $str4;
echo $str3.$str4;

Output

\n"; $str3 = "hello \n"; $str4 = "world
\n"; echo $str3; echo $str4; echo $str3.$str4; ?>