ted_chou12 Posted February 2, 2007 Share Posted February 2, 2007 I know that strpos() finds out the position of the first matched string, however, is there a way to find out how many times a string appears in a text? Ted Link to comment https://forums.phpfreaks.com/topic/36760-solved-search-number-of-times-a-string-appears-in-the-text/ Share on other sites More sharing options...
Cep Posted February 2, 2007 Share Posted February 2, 2007 Isn't it substr_count ? Link to comment https://forums.phpfreaks.com/topic/36760-solved-search-number-of-times-a-string-appears-in-the-text/#findComment-175317 Share on other sites More sharing options...
ted_chou12 Posted February 2, 2007 Author Share Posted February 2, 2007 thanks , i dont know is that useful... Ted Link to comment https://forums.phpfreaks.com/topic/36760-solved-search-number-of-times-a-string-appears-in-the-text/#findComment-175347 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.