[PHP] Editing an element within an array

2007-10-10 Thread Brian Dunning
I have a two-dimensional array that looks like this: array( array(0, 123), array(0, 234), array(0, 345), array(0, 456) ) I want to REMOVE any element that contains 234, and I want to INCREMENT the first value for any element that contains 345, to make it look

Re: [PHP] Editing an element within an array

2007-10-10 Thread Stut
Brian Dunning wrote: I have a two-dimensional array that looks like this: array( array(0, 123), array(0, 234), array(0, 345), array(0, 456) ) I want to REMOVE any element that contains 234, and I want to INCREMENT the first value for any element that contains 345, to make it

Re: [PHP] Editing an element within an array

2007-10-10 Thread Robert Cummings
On Wed, 2007-10-10 at 14:36 +0100, Stut wrote: Brian Dunning wrote: A pint of cachaça to he who sets me on the path to success. Don't really know what that is, but OK! I'll be back with your pint a minute... right now I have to go to the washroom... why am I carrying this empty pint

Re: [PHP] Editing an element within an array

2007-10-10 Thread Stut
Robert Cummings wrote: On Wed, 2007-10-10 at 14:36 +0100, Stut wrote: Brian Dunning wrote: A pint of cachaça to he who sets me on the path to success. Don't really know what that is, but OK! I'll be back with your pint a minute... right now I have to go to the washroom... why am I carrying