Re: [PHP] array diff with both values returned

2005-05-08 Thread Richard Lynch
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

[PHP] array diff with both values returned

2005-05-06 Thread blackwater dev
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 have: $array1=array(name=fred,gender=m,phone==555-);

Re: [PHP] array diff with both values returned

2005-05-06 Thread Philip Hallstrom
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 have: $array1=array(name=fred,gender=m,phone==555-);