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