<?php class A { protected function a() { return array(1, 2 ,3); } public function __get($name) { return $this->a(); } } $a = new A; var_dump($a->abc);
You have javascript disabled. You will not be able to edit any code.