A friend of mine showed me a third method:
Code: Select all
$output1 = <<< OUTPUT
    // Write plain HTML code here (or anything else you simply want printed), you can also use PHP variables here
OUTPUT;
echo $output1;
This way you can write lots of HTML, and keep it neat and tidy, while also using variables to get a more dynamic structure.
You need to have the closing OUTPUT; tag hit the left margin of your editor (E.G. no whitespaces or other symbols to the left of this tag).
And you cannot use anything but clean variables ($array['something'] would not work).
I don't bother doing this unless I have a few HTML lines to write, and/or I want to use php variables within the HTML.
So just a simple link I just close and open php tags as described above...