Answers for "total no of occurances in string php"

PHP
0

total no of occurances in string php

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


//please note needle is case sensitive
Posted by: Guest on June-17-2021

Code answers related to "total no of occurances in string php"

Browse Popular Code Answers by Language