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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user