class A {
public function __call($method, $args) {
echo " A => ".$method." ".implode(',', $args)."\n";
}
}
class B extends A {
public function __call($method, $args) {
echo " B => ".$method." ".implode(',', $args)."\n";
}
public function me() {
parent::test(1,3);
}
}
$b = new B();
$b->me();
B => test 1,3
<?php
class A {
public function __call($method, $args) {
echo " A => ".$method." ".implode(',', $args)."\n";
}
}
class B extends A {
public function __call($method, $args) {
echo " B => ".$method." ".implode(',', $args)."\n";
}
public function me() {
parent::__call('test', [1,3]);
}
}
$b = new B();
$b->me();