[thelist] Php array, best way to...
jsWalter
jsWalter at torres.ws
Mon Jul 12 14:27:33 CDT 2004
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Michael
> Pemberton
> Sent: Sunday, July 11, 2004 5:39 AM
> To: Thelist
> Subject: Re: [thelist] Php array, best way to...
>
>
> jsWalter wrote:
>
> > I have an array with 100+ elements
> >
> > Each element is an array of 75 elements
> >
> > What would be the best way to retrieve a subset of elements
> > from each the sub-array?
> Look at using the array_slice function. It will return a
> subset of the array contents as it's own array. you could
> then use array_merge to append it to your tmpArray.
Interesting idea, but I discounted this because it modified the orginal
array.
Not my intent.
I wanted to pull a subset out and not touch the orginal.
Thanks
Walter
More information about the thelist
mailing list