I wish it was that easy. Ok here is a very tiny bit of my code:
function returnBar( )
{
$nMenu = 1;
?>
<HEAD>
<TITLE>
<?php print $this->arNav[ 8 ]; ?>
</TITLE>
ok see how its in a class? this is only the title, I proceed having a bunch of for loops. Basically it generates a bunch of dynamic dhtml menus with submenus. Now for a weird reason that I cannot conceive my boss wants me to return the whole bar I generate as a string. If is it to become a string I need to say something to the effect of
$html = "\n<HEAD>\n<TITLE>\n" . $this-arNav[ 8 ] .....
and keep going which is very ugly and stupid. If I use here doc (go to php.net quick search string functions and you will find it) I can copy big amounts of text the way it looks BUT it doesn't interpret any of the variables 🙁
Yes I know complexity to its greatest.
Bleep