View Single Post
Old 01-14-2008, 12:47 PM   #9 (permalink)
andrew247
Google Guru
 
andrew247's Avatar
 
Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,386
Thanks: 3
Thanked 13 Times in 13 Posts
andrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of light
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).
andrew247 is offline   Reply With Quote
The Following User Says Thank You to andrew247 For This Useful Post:
[ugly_cat] (01-14-2008)