Scip Posted June 29, 2009 Share Posted June 29, 2009 I tried looking for something similar through google but i got a bit confused with the results. What i want to know is that is there a in built function in php which takes a keyword and string as arguments and then returns the number of times the keyword if found in the string? Quote Link to comment https://forums.phpfreaks.com/topic/164063-function-to-count-number-of-times-a-word-is-repeated-in-a-string/ Share on other sites More sharing options...
RussellReal Posted June 29, 2009 Share Posted June 29, 2009 substr_count Quote Link to comment https://forums.phpfreaks.com/topic/164063-function-to-count-number-of-times-a-word-is-repeated-in-a-string/#findComment-865471 Share on other sites More sharing options...
Scip Posted June 29, 2009 Author Share Posted June 29, 2009 thanks i will give that a look. Quote Link to comment https://forums.phpfreaks.com/topic/164063-function-to-count-number-of-times-a-word-is-repeated-in-a-string/#findComment-865476 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.