note 99532 added to language.references.arent

From: Date: Mon, 23 Aug 2010 07:50:00 +0000
Subject: note 99532 added to language.references.arent
Groups: php.notes 
Request: Send a blank email to php-notes+get-171931@lists.php.net to get a copy of this message
In response to mstasak at access4less dot net, in fact just assign the reference of one element to another variable will change the element value to itself reference. unset($a); unset($b); $a[1]=1; $tmp=&$a[1]; $b=$a; $b[1]=7; print_r($a); //output is 7 print_r($b); //output is 7 ---- Server IP: 61.195.146.164 Probable Submitter: 126.112.211.154 ---- Manual Page -- http://www.php.net/manual/en/language.references.arent.php Edit -- https://master.php.net/note/edit/99532 Del: integrated -- https://master.php.net/note/delete/99532/integrated Del: useless -- https://master.php.net/note/delete/99532/useless Del: bad code -- https://master.php.net/note/delete/99532/bad+code Del: spam -- https://master.php.net/note/delete/99532/spam Del: non-english -- https://master.php.net/note/delete/99532/non-english Del: in docs -- https://master.php.net/note/delete/99532/in+docs Del: other reasons-- https://master.php.net/note/delete/99532 Reject -- https://master.php.net/note/reject/99532 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171931) next »