PHP protected function call in child class
<p>I know how to call a protected function in a child class. Are there any other methods to call a protected function in a child class besides demonstrated below?</p>

<pre><code>My Parent Calss {

    class myadmin {

        function __construct() {
        }

        protected function _layouts(){
            return "Hello world";                
        }

}
</code></pre>

<p><strong>Child Class</strong></p>

<pre><code>class adminpanel extend myadmin {

    public function index() {
        $this-&gt;_layouts();
        // or 
        parent::_layouts();
    }

}
</code></pre>