how to find the number of occurrances of a string?
Posted: Thu Nov 17, 2005 5:31 am
Hello
I have some very long text
I need to count the number of times the phrase 'Num photos'
appears in the global text (stored in variable $content)
Is there an efficient way to do this without resorting to parsing?
regards
I have some very long text
I need to count the number of times the phrase 'Num photos'
appears in the global text (stored in variable $content)
Is there an efficient way to do this without resorting to parsing?
regards