$result = $object -> var -> method(); |
span style="color: #0000BB"><?phpclass X{ public $v; public function __construct () { $this->v = new A(); }}class A{ public function f($v) { return 'c'; }}$v = new X;print_r(array_map(array($v->v, 'f'), array('hfdg'))); |