I have a string, which for example, might be this;
$string = "The quick brown fox jumped over the lazy dog";
I want a way to count, for example, how many times the letter "o" appears in that string.
Can someone nidge me in the right direction... my brain isnt working today.
Engaged my brain and used the substr_count() function.
***SOLVED*** Count the instances of a string within a string
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users