error when creating an object in php
<p>hey guys i just installed wamp server on my computer , but when i do some php on it i have an error when i creat just a simple new object here is the code </p>

<pre><code> &lt;?php
      class foo {
      function affichage () {
      echo 'xxxx';
      }
      $display = new foo();
      $display -&gt; affichage();
      }
          ?&gt;
</code></pre>

<p>and the error is</p>

<blockquote>
  <p>( ! ) SCREAM: Error suppression ignored for<br/>
  ( ! ) Parse error: syntax error, unexpected '$display' (T_VARIABLE), expecting function (T_FUNCTION) in C:\wamp\www\new 4.php on line 6.</p>
</blockquote>
