title: php multiple classes and methods with same name
body: <p>If I call "myClass::getItems()" from the "workingCLass" which getId method will be called? The one that echos "hello" or "bye"? Thank you. </p>
  
  <pre><code>class myClass extends otherClass {
     function getId(){
        echo "hello";
     }
  }
  
  
  class otherClass{
     function getItems(){
        $this-&gt;getId();
     }
     function getId(){
        echo "bye";
     }
  }
  
  
  class workingClass extends myClass {
     function __construct(){
        $this-&gt;getItems();
     }
  }
  </code></pre>