Parent::function does not run magic __call - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Parent::function does not run magic __call.php
- <?php
- class A {
- public function tearDown()
- {
- var_dump('a');
- }
- }
- class B extends A {
- public function __call($name, $arguments)
- {
- var_dump($name);
- }
- }
- class C extends B {
- public function tearDown()
- {
- var_dump('c');
- parent::tearDown();
- }
- }
- $c = new C();
- $c->tearDown();
File Description
- Parent::function does not run magic __call
- PHP Code
- 07 Feb-2019
- 353 Bytes
You can Share it:
Latest PHP Pastes