1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

Add an example of indirectly modifying readonly property

This commit is contained in:
Jakub Vrana
2025-11-06 14:48:24 +01:00
parent fcf847c112
commit 801e7a15e8

View File

@@ -300,6 +300,7 @@ $test->i++;
++$test->i;
$test->ary[] = 1;
$test->ary[0][] = 1;
unset($test->ary[0]);
$ref =& $test->i;
$test->i =& $ref;
byRef($test->i);