<?php class test { public $foo; public function foo($name, $value) { $this->$name = $value; } } $test = new test(); $test->foo('foo', 1); var_dump($test->foo);
You have javascript disabled. You will not be able to edit any code.