<?php class Test { private $x = 42; function __get($name) {return $this->$name;} } $test = new Test; var_dump($test->x);
You have javascript disabled. You will not be able to edit any code.