I read the string functions in the manual, but there are so many, I have no ida which to use. I want to be able to find a specific word within a string.
So if the string to check is
$string = thecatinthehat;
I then query a list in a database thru a do, while loop and it will check that string against each word in the list. So then it comes the word "cat"...how do I write the code to find that word cat within that string, that way onceit finds it, it will return an error. I do have another function that is working ok with similar_text against another list that will catch the the string my word is a certain percantage similar, but for this case I want an exact match of that entire word..
Bottom line, is the inputed strings would be user names, and the database list would be a list of inappropiate words. So that if they want their user name to be "The_Big_Bad_Ass", I can have the word "ass" in a list and it will catch that....I already have the string coming in converted to all lower case and special characters omitted so that the string to check will be "thebigbadass".....
Hope I didn't offend anybody using the word itself, but I wanted to make clear exactly what I was trying to do..