Quote:
|
$header is a variable right?
|
Yes.
Quote:
|
why do you declare that with different values?
|
I don't - I just keep lengthening the string.
Quote:
|
when you call $header with an echo command which one do you think will it show?
|
It will display all of it.
The concatenation ( .= ) joins strings together, so "<head>\n" is added on to the end of "<html>\n" etc until you have the whole header.
I could have done it the way you suggested, it would have worked just the same, but I don't really like mixing PHP and HTML.
The reason I concatenated it is so that it looked neater, that was all.

(Also I think the structured listing the forum outputs is pretty cool).