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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to