<?php class Foo { private function __get($name) { } private function __set($name, $value) { } } $foo = new Foo; $foo->bar = 'baz';
Standard input is empty
Standard output is empty
PHP Warning: The magic method __get() must have public visibility and cannot be static in /home/xq7fyX/prog.php on line 5 PHP Warning: The magic method __set() must have public visibility and cannot be static in /home/xq7fyX/prog.php on line 10