Get called a subclass method from a superclass
<p>I have a big problem. How to get called subclass method from a superclass. Please execute below code.</p>

<pre><code>class Model {

    public function render(){
     echo '&lt;br /&gt;class: '.get_class($this).' -- function: '.__FUNCTION__;
    }
}

class Product extends Model {

    public function show(){
     $this-&gt;render();
    }
}

class User extends Model {

    public function index(){
     $this-&gt;render();
    }
}


$p = new Product();
$u = new User();

echo $p-&gt;show();
echo $u-&gt;index();
</code></pre>

<pre>
result :
class: Product -- function: render
class: User -- function: render
</pre>

<p>How to get subclass method name instead of render? </p>

<p>Thanks.</p>
