I am really drawing a blank. I know I have used a function before that will do the following, but I just can't think straight today.
I want to parse a string and if a certain code word is in the string, I want to return "True".
Example:
$string = "I will return Tuesday morning";
Thus, I want to parse the string and anytime the word "Tuesday" is in the string, I want to return a result of true. The $String variable will change and will equal a variable, populated via a form by the end user.
Can someone suggest a PHP function that might work in this instance?
Thanks.