Re: [PHP] Copying array segments

2002-10-04 Thread Robert Cummings
Rasmus Lerdorf wrote: > > > I've got an array that is 5 arrays deep, and I want to copy the array > > three levels down of one index into a new array. > > > > Example: $output['recommendernames'][0]['recommendername'][0]['com']; > > > > This is what I want to do: > > > >$newoutput =

Re: [PHP] Copying array segments

2002-10-04 Thread Rasmus Lerdorf
> I've got an array that is 5 arrays deep, and I want to copy the array > three levels down of one index into a new array. > > Example: $output['recommendernames'][0]['recommendername'][0]['com']; > > This is what I want to do: > >$newoutput = $output['recommendernames'][0]['recommen

[PHP] Copying array segments

2002-10-04 Thread Lon Lentz
I've got an array that is 5 arrays deep, and I want to copy the array three levels down of one index into a new array. Example: $output['recommendernames'][0]['recommendername'][0]['com']; This is what I want to do: $newoutput = $output['recommendernames'][0]['recommendername'];