How to pass $this to non-object function
<p>When I pass <code>$this</code> to a function, I got error message like this, <code>The function does not exists.</code> </p>

<pre><code>// In class A
class A extents F
{
    function m()
    { 
        Do($this);
    }

    function t()
    {
    }
}

class B extents F
{
    function m()
    { 
        Do($this);
    }

    function t()
    {

    }
}

// Some where in .inc.php file
function Do(F $obj)
{
    $obj-&gt;t();
}
</code></pre>

<p>Actually, I have many classes inherit from one base class. All those class have some functions in common. I need a function to deal them all.</p>
