Understanding $this->functionName(); in PHP
<p>I am slowly trying to understand object orientated PHP, I am still finding my way with <strong>$this-></strong>, but am at the point where unless it sticks to the areas I am familiar with I get a little lost. </p>

<p>I have this snippet of code from a project I am reviewing that I am trying to understand, I am just wondering if somebody could provide some minimal/basic code that would go around (on the top and on the bottom) the example in order to successfully run it: </p>

<pre><code>if ($this-&gt;isValid())
{
  print "Valid";
}
</code></pre>
