php-general | 2005051
Date: 05/08/05
- Next message: bala chandar: "Re: [PHP] Question about acessing databases and formatting output"
- Previous message: Richard Lynch: "Re: [PHP] expression between vertical bars"
- In reply to: blackwater dev: "[PHP] array diff with both values returned"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, May 6, 2005 7:03 am, blackwater dev said:
> Hello,
>
> Is there a good way to get the difference in two arrays and have both
> values returned? I know I can use array_dif to see what is in one and
> not the other but...I need it to work a bit differently.
I believe you want array_union followed by array_unique (or whatever those
are called)
-- Like Music? http://l-i-e.com/artists.htm-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: bala chandar: "Re: [PHP] Question about acessing databases and formatting output"
- Previous message: Richard Lynch: "Re: [PHP] expression between vertical bars"
- In reply to: blackwater dev: "[PHP] array diff with both values returned"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

