You are here: Re: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade « PHP « IT news, forums, messages
Re: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

Posted by Edward Vermillion on 08/23/05 16:11

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]
>>
>>Has anyone seen this behaviour?
>
>

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация