<?php class test { public $Something; public $SomethingElse; function setSomething($value) { $this->Something = $value; } function setSomethingElse($value) { $this->SomethingElse = $value; } } $property = "Something"; $t = new test; $setter = "set$property"; $t->$setter(4); echo $t->Something; $property = "SomethingElse"; $t->{"set$property"}(8); echo $t->SomethingElse;
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`