PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
stereofrog wrote:neither of them is able to tell if a word is in the string
What? I hope you meant to say that BOTH of them are able to tell if a word is in a string, but not able to differentiate between an actual separated word with boundaries and just a portion of a word with the same characters.