title: PHP: How to call function of a child class from parent class
body: <p>How do i call a function of a child class from parent class?
  Consider this:</p>
  
  <pre><code>class whale
  {
    function __construct()
    {
      // some code here
    }
  
    function myfunc()
    {
    // how do i call the "test" function of fish class here??
    }
  }
  
  class fish extends whale
  {
    function __construct()
    {
      parent::construct();
    }
  
    function test()
    {
      echo "So you managed to call me !!";
    }
  
  }
  </code></pre>