|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-23 13:46 UTC] jani@php.net
[2012-10-16 14:20 UTC] wojtek77 at o2 dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 23:00:01 2026 UTC |
Description: ------------ Is OK: function x($x) { $x[0] = 0; } $x = array(1); print_r($x); //$aaa = & $x[0]; x($x); print_r($x); //Array ( [0] => 1 ) Array ( [0] => 1 ) Is not OK: Is OK: function x($x) { $x[0] = 0; } $x = array(1); print_r($x); $aaa = & $x[0]; x($x); print_r($x); //Array ( [0] => 1 ) Array ( [0] => 0 ) //Variable $x underwent the change.