Editing an element within an array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux