<?php error_reporting(-1); abstract class A { public function foo(){ array_map( 'static::bar', ['hello', 'world']); } abstract public static function bar($arg); } class B extends A { public static function bar($arg) { var_dump($arg); } } $b = new B; $b->foo();
You have javascript disabled. You will not be able to edit any code.