i cant think of one off the top of my head, but writing something like this would be simple enough.
Just loop one of them and for each value do an in_array() on the other one, if thats true then popultate a new one.
Other than that, in the 5 seconds i've looked, no idea.
PHP / CSS / Perl / XML / XHTML
For cheap ipod touch
go to protella.com