Re: Re: Removing a row from an Array

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

 



Can you be more specific? Show us a line of code, or so.

There are lots of functions that may fit your needs, array_filter(), array_walk(), preg_grep(), etc.

I've found array_grep() to be super in many cases.
Returns the array consisting of the elements of the input array that match the given pattern. OR, that don't match the pattern.

Most require array_values() to resync the keys.


Ken Kixmoeller -- reply to ken@xxxxxxxxxxxxxx wrote:
On Jun 4, 2007, at 3:27 PM, Al wrote:


What determines the rows you want to keep?


User selection. The array is essentially a "shopping cart"-type of object.

--
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