EOD not ending?
<p><img src="http://i.stack.imgur.com/cs5fw.jpg" alt="alt text"></p>

<pre><code>&lt;?php

// Page class

class Page {

// Declare a class member variable
var $page;
var $title;
var $year;
var $copyright;

// The Constructor function
function Page($title, $year, $copyright){
// Assign values to member variables
$this-&gt;page = '';
$this-&gt;title = $title;
$this-&gt;year = $year;
$this-&gt;copyright = $copyright;

// Call the addHeader() method
$this-&gt;addHeader();
}

// Generates the top of the page
function addHeader(){
$this-&gt;page .= &lt;&lt;&lt;EOD
                &lt;html&gt;
                &lt;head&gt;
                &lt;title&gt;$this-&gt;title&lt;/title&gt;
                &lt;/head&gt;
                &lt;body&gt;
                &lt;h1 align="center"&gt;$this-&gt;title&lt;/h1&gt;
                &lt;/body&gt;
                EOD;
    }
}




?&gt;
</code></pre>

<p>Thanks in advance</p>
