You are here: Re: [PHP] Problem with arrays « PHP « IT news, forums, messages
Re: [PHP] Problem with arrays

Posted by Kevin L'Huillier on 06/24/05 19:17

On 24/06/05, Josh Olson <josholson@gmail.com> wrote:
> for ($i = 0; $i < count($array1); i++)
> $array1[$i][] = $array2[$i];
>
> from kevin l'huillier

That's basically what Mike wrote (only with array_push instead of []),
and Bob improved upon. And they didn't mix the arrays up.

I was only making the point that the solution was simple with a quick
comment in IRC. I had not intended for it to be posted to the list.

 

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

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