NON TOTAL DE CONSEMBRES EN PHP STRING

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


//please note needle is case sensitive
uzii