Quote:
Originally Posted by chaley
My guess is you want to use list_intersection() similarly to what I described in post 864, as in
Code:
program:
list_intersection($tags, 'X, Y, Z', ',')
The function returns items in $tags that are also in the list 'X, Y, Z', e.g. if the tags are 'A, B, X, Z' then the function returns 'X, Z'.
|
I do actually, never thought about using it this way as well, but I guess that would work if instead of append to field I use replace field??
Works perfect except for one little snag, where I had to circumvent an ' in one of the tags with a \ like in regex.