Jump to content

dupes in comma delimited string SOLVED with thanks in the last post


niche

Recommended Posts

is there a function to delete dupes in a comma delimited string? If so, what is it please? if not, is an implode/explode with an array_unique() as good a way as any?

Edited by niche
Link to comment
Share on other sites

Anything that needs to be a comma-separated list is probably better off as an array. And therefore, explode() and array_unique() is probably the best way.

Link to comment
Share on other sites

Thanks Ingolme. Your help is always appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...