title: $class->method() or $class::method()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3037526/where-we-use-object-operator-in-php">where we use object operator &ldquo;-&gt;&rdquo; in php</a>  </p>
  </blockquote>
  
  
  
  <p>In PHP 5, what are the advantages of typing <code>$class::method()</code> instead of <code>$class-&gt;method()</code>? </p>
  
  <p>As in any performance or functional differences. Or is this just a way of forcing code non-PHP4 friendly because of the complete rewrite?</p>