I'd say maybe just 1 thing...
When you put a string between single quote, you cannot use variables in it.
PHP Code:
echo 'this is the $count time you come here';
Will output it as it it spelled. You must do
PHP Code:
echo 'this is the '.$count.' time you come here';
to have variables translated to their values.
Otherwise, there is still 1 more writing that I find much more readable for outputing multiple lines.
PHP Code:
$lang="PHP"; echo <<<HTML this is a multiline $lang text string. HTML;
Everything between the tags you put after <<< and before <tag>; is treated as the content of your variable.
I often use this technique to output large HTML blocks.
Or to compose my SQL queries, for instance.
You just have to take care that the ending tag is on the first column of the line; no spaces or tabs before it.
__________________
Listen to the ducky: "This is awesome!!!"
|