<?php class A { private $v = 0; public function __get($name) { return $this->v; } public function __set($name, $v) { $this->v = $v; } } $a = new A; $a->foo++; var_dump($a);
You have javascript disabled. You will not be able to edit any code.