I have a string of numeric ids in a comma separated format
$IDs = 23,34,55,42,33,41,22 ... 6767,4556;
I also have a table that may have some values that should be removed from the string of IDs. How do I do that?
zzz wrote:I also have a table that may have some values that should be removed from the string of IDs. How do I do that?
[man]explode/man the string to an array, retrieve those values from the table into an array, then use [man]array_diff/man. You can [man]implode/man to get the result string.
Ahh, I always forget to convert the string to aray and back!!! I'm getting better but still need work. Great!