Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to find number of words in a sentence example code
Posted

1 solution

 
Share this answer
 
Comments
DeepthiTanguturi 23-Apr-12 8:16am    
I want particular keyword in a sentence example
Prasad_Kulkarni 23-Apr-12 12:48pm    
DeepthiTanguturi 23-Apr-12 23:51pm    
For example,PHP is a open-source.PHP is a srcipting language.In that sentence 2 times PHP occur.I used in_array(),but it returns 1st occurance of the PHP.
Prasad_Kulkarni 24-Apr-12 0:15am    
Not clear. Please elaborate.
DeepthiTanguturi 24-Apr-12 0:22am    
My sentence is "PHP is a open-source.PHP is a srcipting language.In that sentence 2 times PHP occur.".In that sentence PHP occurs 2 times.How to find that.For that case i want some sample code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900