Usuń zduplikowane znaki w ciągu w 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);