Gesamtno von Vorschlägen in String PHP

$str = "cdcdcdcdeeeef";
echo substr_count($str, 'c'); 


//please note needle is case sensitive
uzii