data = $data; } public function foo($data) { return $this->data . $data; } } $object = new test('BAR!'); $test = call_user_func_array(array($object, 'foo'), array('bam!')); echo $test; echo $test; ?>