diff --git a/language/references.xml b/language/references.xml index 5d18fa9a06..4c4751c695 100644 --- a/language/references.xml +++ b/language/references.xml @@ -1,5 +1,5 @@ - + References Explained @@ -168,32 +168,6 @@ echo $ref; // 3 - last element of the iterated array - - - Complex arrays are sometimes rather copied than referenced. Thus following - example will not work as expected. - - References with complex arrays - - array(), - 'B' => array( - 'B_b' => array(), - ), -); - -$top['A']['parent'] = &$top; -$top['B']['parent'] = &$top; -$top['B']['B_b']['data'] = 'test'; -print_r($top['A']['parent']['B']['B_b']); // array() -?> -]]> - - - - The second thing references do is to pass variables by-reference. This is done by making a local variable in a function and