I'd like to find out what function I should use to find out how many times something occurs in a string.
For example the letter 'l' occurs twice in the word 'hello'. I'm wondering what function to use to find this out.
Thanks.
Try [man]substr_count[/man]
I'm also wondering, how to use this to find how many line breaks there are in a text string? What character am I looking for? \n ?
Exactly!