php4-beta | 200004

Re: [PHP4BETA] Re: [PHP3] howto remove key/value from array based on regexp From: Andrei Zmievski (andrei <email protected>)
Date: 04/11/00

On Tue, 11 Apr 2000, Rossi Designs wrote:
> loop through putting them into another array and don't pass the empty ones.
>
> for ($x=0;$x<count($array);$x++) {
> if ($array[$x] meets whatever condition) $array2[] = $array[$x];
> }
>
> Then if you need to you can pass them back to the original array

I hope to do a modification to preg_grep() which will make this much
easier.

-Andrei
* Non-volatile, random-access, analog memory store... a book. *

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>