<?php class Foo { protected $baz = 'beer'; function bar($arg) { return $this->baz . ' ' . $arg; } } $foo = new Foo(); $callable = array($foo, 'bar'); var_dump($callable('soda'));
You have javascript disabled. You will not be able to edit any code.