A and B have function with the same signature — let’s assume : foo($arg) — and that class A extends B.
Now I have an instance:
$a = new A();
$a.foo($data);
Can I also run the parent’s (B’s) foo() function through $a or was it overridden?
Thanks!
Nimi
It is overridden but if you want to use both you can do this:
If you want that the child function calls the parent function do this:
See this URL for more information: http://php.net/manual/en/keyword.parent.php