<?php class A { private string $foo; public function __construct() { unset($this->foo); } public function do() { $this->foo = 'bar'; print $this->foo . PHP_EOL; } public function __set($name, $value) { print "called __set\n"; if ($name === 'foo') $this->foo = $value; } } $a = new A(); $a->do();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`