Anonymous A started this discussion 15 years ago#7,979
Say I was processing a form, and I was handling very large pieces of text. If I wanted to check whether the text entered contained a particular word or character so I could tell it to die, how would I do that?
I'm new to PHP, and the only way I can think of is using an if statement. I could check whether $_POST["something"] was the word very easily - but I want to check if it just contains that word and then tell it to die (or echo something back to the user).