<?php class Test { public function __set($name, $value) {} } function foo($bar) { $bar->{'some_weird_variable'} = 'some value'; } $obj = new Test(); foo($obj); var_dump($obj->{'some_weird_variable'});
You have javascript disabled. You will not be able to edit any code.