Anonymous
public text v1 · immutable<?php
class test
{
private $data;
private $name;
public function __construct($data)
{
$this->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;
?>