Whats the difference between -> and :: in OOP
<p>Trying to find some information on this but am unable to get any results probably due to the chars used.</p>

<p>What is the difference between the following as from what I gather they do the same thing.</p>

<pre><code>$classname-&gt;function()
Classname::function()
</code></pre>

<p>Does the second example automatically instantiate the object?</p>
