Re: foreach loop changed after 4.3 -> 4.4 upgrade
| From: | tibyke) | Date: | Tue, 23 Aug 2005 13:59:43 +0000 |
| Subject: | Re: foreach loop changed after 4.3 -> 4.4 upgrade | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221167@lists.php.net to get a copy of this message | ||
turck-mmcache?
t
Edward Vermillion wrote:
Larry Brown wrote:I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=>$subArray) Now it displays as it previously did where $subArray is concerned. Is there something I'm missing here? Was I the only person not using "keys"?[snip]I'd have to go back through my code, I'm using $key => $value in some places but not in others, but I didn't notice anything different in my code when I upgraded to 4.4 as far as the foreach loops are concerned.Has anyone seen this behaviour?