note 14403 added to language.references.arent.php

From: Date: Mon, 30 Jul 2001 11:33:47 +0000
Subject: note 14403 added to language.references.arent.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16049@lists.php.net to get a copy of this message
function foo (&$aVar) { $aVar['value'] =& $GLOBALS["baz"]; } foo($bar); Let me take a crack at this one. Essentially, when you make $aVar and $bar reference the same variable, that variable is an array, so when you assign a reference value to $aVar['value'], $bar is now the the beginning of an array. Yes? http://www.php.net/manual/en/language.references.arent.php

« previous php.notes (#16049) next »