<?php class TestClass { public int $a; } $test = new TestClass(); $string = 'foo'; $test->int = &$string; var_dump($test->int); $test->int = []; var_dump($test->int);
You have javascript disabled. You will not be able to edit any code.