You are here: Re: How to iterate throut an array? « PHP Programming Language « IT news, forums, messages
Re: How to iterate throut an array?

Posted by <talthen.z-serwera.o2 on 08/09/06 21:19

Benjamin D. Esham wrote:
>You should be able to set up a function that iterates through the array and
>does what you want.

mootmail-googlegroups[a_t]yahoo.com wrote:
> In the array you gave as an example, you have some non-numeric key
> values. Iterating a variable in order to do $tresc[$x] only works if
> you have integer keys in order, such as
> $tresc[0],$tresc[1],$tresc[2]...etc. For non-numeric keys, use the
> foreach control structure.

Hm... thank you. I didn't know that. I thought it will enumerate all
possible keys. Will try with foreach.

Thank you both,
Talthen

 

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

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