On 24/06/05, Josh Olson <[EMAIL PROTECTED]> 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

Reply via email to