note 116334 added to language.references.whatdo

From: Date: Sun, 14 Dec 2014 19:01:53 +0000
Subject: note 116334 added to language.references.whatdo
Groups: php.notes 
Request: Send a blank email to php-notes+get-201189@lists.php.net to get a copy of this message
j'ai pas compris pourquoi ce code affiche refcount =2 pour array[index] <?php function & getReferenceByIndex(& $array, $index) { debug_zval_dump($array); var_dump($array); return $array[$index]; } $tab = array(4, 5); $index =& getReferenceByIndex($tab, 1); $index = 0; //var_dump($tab); //debug_zval_dump($tab); ---- Server IP: 195.221.21.36 Probable Submitter: 105.108.160.7 ---- Manual Page -- http://php.net/manual/en/language.references.whatdo.php Edit -- https://master.php.net/note/edit/116334 Del: integrated -- https://master.php.net/note/delete/116334/integrated Del: useless -- https://master.php.net/note/delete/116334/useless Del: bad code -- https://master.php.net/note/delete/116334/bad+code Del: spam -- https://master.php.net/note/delete/116334/spam Del: non-english -- https://master.php.net/note/delete/116334/non-english Del: in docs -- https://master.php.net/note/delete/116334/in+docs Del: other reasons-- https://master.php.net/note/delete/116334 Reject -- https://master.php.net/note/reject/116334 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201189) next »