Re: sets
| From: | Andrei Zmievski | Date: | Mon, 15 May 2000 13:22:39 +0000 |
| Subject: | Re: sets | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18760@lists.php.net to get a copy of this message | ||
On Mon, 15 May 2000, Zeev Suraski wrote:
> If they're well written, then those functions will be accepted. Generally
> any function which may be useful for the general public is happily accepted.
This is to the original poster (I lost the message):
Name them array_union(), array_intersect(), array_subtract(). It's
shorter and goes along with object-verb metaphor. Make sure you preserve
the keys in the resulting arrays. I can take a look after you're done
and polish it up. It'd be nice to perform these operations on an
arbitrary number of arrays.
Oh, also, I think array_merge() already does what you want array_union()
to do.
-Andrei
* "Lack of planning on your part doesn't consitute an emergency on my part." *