This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes PHP and the fly likes multiple occurrence of a word in a String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » PHP
Bookmark "multiple occurrence of a word in a String" Watch "multiple occurrence of a word in a String" New topic
Author

multiple occurrence of a word in a String

zalak thakkar
Ranch Hand

Joined: Sep 09, 2013
Posts: 33
Hello everyone,

I have a problem in finding the multiple occurrence of a single word in a Sting..Can any one help me? I have also the code of it bt it displays nothing.

Roel De Nijs
Sheriff

Joined: Jul 19, 2004
Posts: 6709
    
  24

You print values outside the html-tags. That's definitely not a good practice (and definitely results in invalid html). Should be in the body-tag, maybe in a seperate div-tag containing the results...


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
OCAJP 7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple occurrence of a word in a String