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? 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 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. 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
Archived
This topic is now archived and is closed to further replies.