title: How do I call a static child function from parent static function?
body: <p>How do I call child function from parent static function ?</p>
  
  <p>In php5.3 there is a built in method called <code>get_called_class()</code> to call child method from parent class. But my server is running with <strong>php 5.1</strong>.</p>
  
  <p>Is there any way can do this ?</p>
  
  <p>I want to call it from a static function . So that I can not use "$this"</p>
  
  <p>So i should use "self" keyword.</p>
  
  <p>Below example my parent class is "Test123" , from the parent class static function "myfunc" am trying to call child class function like this "self::test();"</p>
  
  <pre><code>abstract class Test123
  {
  
    function __construct()
    {
      // some code here
    }
  
    public static function myfunc()
    {
      self::test();
    }
  
    abstract function test();
  }
  
  class Test123456 extends Test123
  {
    function __construct()
    {
      parent::__construct();
    }
  
    function test()
    {
      echo "So you managed to call me !!";
    }
  
  }
  
  $fish = new Test123456();
  $fish-&gt;test();
  $fish-&gt;myfunc();
  </code></pre>