Total tidak ada kejadian dalam string php
$str = "cdcdcdcdeeeef";
echo substr_count($str, 'c');
//please note needle is case sensitive
uzii
$str = "cdcdcdcdeeeef";
echo substr_count($str, 'c');
//please note needle is case sensitive