php Difference between -> and : <p>I'm fairy new to php, but have a lot of OOP experience. I was just wondering why you do this in php.</p>

<p>What I think your meant to do:</p>

<pre><code>$example-&gt;functionName();
</code></pre>

<p>What I thought you would've done:</p>

<pre><code>$example.functionName();
</code></pre>

<p>(Please tell me if Ive got it all wrong)</p>

<p>So the question is, why do you use -> instead of . in php? Or is there no difference?</p>
