[UPHPU] remove items in array a that match items in array b

Brandon Stout bms at mscis.org
Sat Jun 9 03:47:18 MDT 2007


Wade Preston Shearer wrote:

> Is there a function that removes all of the values in array A that 
> match values in array B?

As a side note, since I like to make MySQL comments, you can do this in 
MySQL:

  SELECT * FROM t1 WHERE field NOT IN (comma, separated, array);

I may be a tad off since I'm going from memory, and I'm rushing off to 
bed...

Brandon Stout
http://mscis.org


More information about the UPHPU mailing list