Re: array_diff not working with last element different
| From: | Andrey Hristov | Date: | Tue, 27 Aug 2002 18:35:55 +0000 |
| Subject: | Re: array_diff not working with last element different | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87536@lists.php.net to get a copy of this message | ||
Hi,
I've done some hacking and have working (one example tested) array_diff()
modified to
be like array_adiff(). If there is interest I will provide a patch.
Best regards
Andrey Hristov
----- Original Message -----
From: "Brad LaFountain" <rodif_bl@yahoo.com>
To: "Stig Venaas" <venaas@php.net>; "Andrey Hristov"
<andrey@webgate.bg>
Cc: <php-dev@lists.php.net>
Sent: Tuesday, August 27, 2002 5:29 PM
Subject: Re: [PHP-DEV] array_diff not working with last element different
> Well I tried to use them like that, So I guess there is
> a little need. I wrote a simple php function to do the same thing.
>
> I would volunteer but I have alot of stuff going on. Maybe
> if I get borred sometime soon.
>
> - brad
> --- Stig Venaas <venaas@php.net> wrote:
> > On Tue, Aug 27, 2002 at 05:04:41PM +0300, Andrey Hristov wrote:
> > > so, is there need of array_adiff()?
> >
> > Right, it should then work on ordered pairs, right? Only remove
> > (key, value) pair from 1st array if it exists in any of the others?
> > Same goes for array_intersect... I'm not sure if there is that much
> > of a need, but if there is one could either have new associative
> > ones, or flags to the existing ones. But first we should see if
> > there is a real need, then we need to see if someone will implent it.
> >
> > Stig
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>