Source Code:
(back to article)
<?php class MyClass { public $strictProperties = false; public $foo; } $obj = new MyClass(); // This will not generate an error because strictProperties is set to false $obj->bar = 'baz'; echo $obj->bar; // Outputs: "baz"
Result:
Report an issue