Reply to Re: Array Processing

Your name:

Reply:


Posted by J Huntley Palmer on 11/02/96 11:41

Sjoerd wrote:
> J Huntley Palmer wrote:
>> How may I concatenate the index respective questions and answers into
>> one string per index using ONE foreach loop? I do not want to use
>> numerical indexes just the named ones as below.
>
> Do you mean this:
>
> for ($i = 0; $i < count($arr[0]); $i++) {
> $result[] = $arr[0][$i].$arr[1][$i];
> }
>


This will also create an out of bounds error since there are named
indexes mixed in.

[Back to original 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

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