title: PHP: Difference between -> and ::
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3173501/in-php-whats-the-difference-between-and">In PHP, whats the difference between :: and -&gt;?</a>  </p>
  </blockquote>
  
  
  
  <p>In PHP, what is the main difference of while calling a function() inside a class with arrow <code>-&gt;</code> and Scope Resolution Operator <code>::</code> ?</p>
  
  <p>For more clearance, the difference between:</p>
  
  <pre><code>$name = $foo-&gt;getName();
  $name = $foo::getName();
  </code></pre>
  
  <p>What is the main profit of Scope Resolution Operator <code>::</code> ?</p>