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
how to find the number of occurrances of a string?
Moderator: General Moderators
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
try substr_count() for your problem...
thanks for the help n00b Saibot
I am facing a generic parsing problem.
maybe you can help me at viewtopic.php?t=40874
I am facing a generic parsing problem.
maybe you can help me at viewtopic.php?t=40874