<?php class foo { private $bar = null; public function __set($name, $value) { if ($name == 'bar') $this->bar = $value . $value; else throw new Exception('Property does not exists'); } public function __get($name) { if ($name == 'bar') return $this->bar; else throw new Exception('Property does not exists'); } } $obj = new foo(); $obj->bar = '123'; echo $obj->bar;
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`