From a9b562309635a2779eee6900a8c34e656bea8e07 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sat, 24 Feb 2007 20:14:49 +0000 Subject: [PATCH] Remove bogous warning git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@230708 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/references.xml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) 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