Re: Editing an element within an array
| From: | Stut | Date: | Wed, 10 Oct 2007 13:36:56 +0000 |
| Subject: | Re: Editing an element within an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263031@lists.php.net to get a copy of this message | ||
Brian Dunning wrote:
I have a two-dimensional array that looks like this: array(http://dev.stut.net/php/dunning.phparray(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 like this: array(array(0, 123), array(1, 345), array(0, 456))
A pint of cachaça to he who sets me on the path to success.Don't really know what that is, but OK! -Stut -- http://stut.net/