Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

total no of occurances in string php

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


//please note needle is case sensitive
 
PREVIOUS NEXT
Tagged: #total #occurances #string #php
ADD COMMENT
Topic
Name
7+8 =