Hello all, it's been a while, but I am back cracking at some code.
What I need it to do is this: If $string contains a certain phrase, do one thing. If $string does not contain that phrase, do something else.
This is the code that is not working:
if(strpos($string,"phrase")!="false") {
// DO SOMETHING;
}
else {
// DO SOMETHING ELSE;
}
I am sure its something stupid. What is the problem?