How to bypass the constructor value in php using inheritance?
<p>I want to create a function in a class me so I could get access of class ancestor where class ancestor is parent to class dad and class dad is parent to class me. So, I want to perform this because the functions in class ancestors are depended on the constructor value of ancestor class. And I don't want to use default constuctor of Me class and dad class for this process. </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>class ancestor
{
var $a,$b;
public function __construct($valA,$valB)
{
    //this constructor's value i want to access
    $this-&gt;a=$valA;
    $this-&gt;b=$valB;
}
public add()
{
return($this-&gt;a+$this-&gt;b);
}

}
class dad extends ancestor
{
public function __construct()
{
//i don't want to use this as a bridge but i want to handle exception also

}

}
class me extends dad
{

public function ancestorConstructerValue($a,$b)
{
//what is the code to access the ancestor's constructor function?
}
}

$me= new me;
$me-&gt;ancestorConstructerValue("",""); //i want to enter the value through this function 
echo $me-&gt;add();
?&gt;</code></pre>
</div>
</div>
</p>