nothing show's up when class is in php code
<p>I got a simple php page like this:</p>

<pre><code>&lt;?php
include 'config.php';
include 'lib.php';
header("Content-type: text/html; charset=UTF-8");

?&gt;

&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;view states&lt;/title&gt;
        &lt;link rel="stylesheet" type="text/css" href="css/style.css"/&gt;
        &lt;script type="text/javascript" src="jquery-1.8.2.min.js"&gt;&lt;/script&gt;
    &lt;/head&gt;

    &lt;body&gt;

    &lt;div id="container"&gt;
        WTF?
    &lt;/div&gt;

    &lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>when i have the code below in my lib.php, my dom just contains a head and body.
The title is gone, the div container is gone and the text 'wtf?' also.</p>

<p>What's wrong?</p>

<pre><code>class State {
  $id;
  $ip;
  $state;
  $date;
  $played;

  function __construct($id, $ip, $state, $date, $played) {
     $this-&gt;$id = $id;
     $this-&gt;$ip = $ip;
     $this-&gt;$state = $$state;
     $this-&gt;$date = $date;
     $this-&gt;$played = $played;
  }


}
</code></pre>
