Hapus karakter duplikat dalam string dalam php
$str = count_chars($str,3);
Stormy Stoat
$str = count_chars($str,3);
$str = implode(',',array_unique(explode(',', $str)));
// First Answer
$str = implode(',',array_unique(explode(',', $str)));
// Second answer by Inbuild function
$str = count_chars($str,3);