How to use Reflection to extend a class in runtime with php
<p>How can I use Reflection to extend a class in runtime?<br>
I need A class is extended from B class.</p>

<pre><code>class A{
    function methodA()
    {
        echo 'This is method A';
    }
}

class B{
    function methodB()
    {
        echo 'This is method B';
    }
}
</code></pre>
