Re: foreach, assigning to a reference, and E_NOTICE

From: Date: Tue, 07 Mar 2006 06:40:27 +0000
Subject: Re: foreach, assigning to a reference, and E_NOTICE
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-22166@lists.php.net to get a copy of this message
> it's not the problem of the second foreach, any usage of $j after the > 1st foreach as &$j will hurt Yes. I thought it was clear that I understand this. I guess not. My point is that foreach is doing something that isn't immediately obvious. The same is true of your for loop, but to a lesser extent, IMO (as I don't expect your for loop to ONLY read from $i). I don't want to start a discussion on references. I'm just trying to clear up a non-obvious case. S

« previous php.internals (#22166) next »