Should this work?

From: Date: Thu, 08 Feb 2001 18:05:02 +0000
Subject: Should this work?
Groups: php.general 
Request: Send a blank email to php-general+get-38788@lists.php.net to get a copy of this message
foreach($some2DArray as &$refToArrayRow) { } It won't even parse with an error of <b>Parse error</b>: parse error, expecting T_VARIABLE' or '$'' in <b>./myFile.php</b> on line <b>473</b><br> Can you not use a reference within a foreach loop? With the & removed, it works fine but then when I update the $refToArrayRow it's (obviously) not updating the original $some2DArray.... -Szii

« previous php.general (#38788) next »