📅  最后修改于: 2022-03-11 14:54:35.098000             🧑  作者: Mango
代码示例3
// First Answer
$str = implode(',',array_unique(explode(',', $str)));
// Second answer by Inbuild function
$str = count_chars($str,3);