Re: Problem with arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/06/05, Josh Olson <josholson@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux