RE: [PHP] RE: Removing Items from an Array

2005-10-13 Thread Alan Lord
Blimey... That's going to take some de-ciphering... It looks fascinating :-) Thanks! Alan > -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: 13 October 2005 20:53 > To: Alan Lord > Cc: php-general@lists.php.net > Subject: Re: [PHP] RE:

Re: [PHP] RE: Removing Items from an Array

2005-10-13 Thread Jochem Maas
Alan Lord wrote: Hi TG and others, I think I must be missing something here. Your example doesn't seem to traverse "down" into a multidim array. Also, it appears as though your script assumes that the structure of the array is known. It isn't and it is retrieved from "far away" and I have no

[PHP] RE: Removing Items from an Array

2005-10-13 Thread Alan Lord
Hi TG and others, I think I must be missing something here. Your example doesn't seem to traverse "down" into a multidim array. Also, it appears as though your script assumes that the structure of the array is known. It isn't and it is retrieved from "far away" and I have no control over it's s

[PHP] RE: Removing Items from an Array - My Solution

2005-10-13 Thread Alan Lord
Hi cc and others. I have had quite a struggle with this. But finally, the end result looks quite simple... Here is the array of Keys Names I want to preserve: $filter = array( 'CategoryId' => 1, 'CategoryLevel' => 1, 'CategoryName' => 1, 'CategoryParentId' => 1 ); Here is the routine which

[PHP] Re: Removing Items from an Array

2005-10-12 Thread cc
could Alan give samples about the input and expected output of the black box? then we can consider implement it. On 10/13/05, Alan Lord <[EMAIL PROTECTED]> wrote: > Thanks for the replies gents. > > I have cludged together something from your solutions but it isn't yet > working. I've been staring