php remove duplicates from string
snippet in php

php remove duplicates from string

user9303

$str = implode(',',array_unique(explode(',', $str)));