<?php class foo { protected $foo; public function __get($name) { $this->$name = 'foo'; return $this->$name; } } $foo = new foo(); var_dump(empty($foo->foo)); var_dump($foo->foo);
You have javascript disabled. You will not be able to edit any code.