Code: Select all
$string1 = 'hello hello hello <br /> \n hello hello hello';
$string2 = "hello hello hello <br /> \n hello hello hello";
echo $string1;
echo '<br />';
echo $string2;
String1 does not work, it will not return a newline after the <br /> tag, string2 works fine.
I want to use all single quotes since a helpful person pointed out in a post before that using single quotes is better because when you use double quotes in your HTML inside a variable or such you do not have to put \ the escape character before all of them.