Removing duplicate values within a comma separated list in PHP
How can I remove duplicate values within a comma separated list in PHP? I have 2 versions of a customer questionnaire - one is more detailed than the other - and in one they are asked the items they like and in the other they are asked to specify the items they like in ranked order. In this particular example, one of the columns ('items_like') may contain several values in a comma separated list. There are two other scenarios where each of the columns may contain several values in a comma separated list. In order to display a list of all the items a customer likes, I am concatenating the 4