I have retrieved information using IMAP and stored it in a variable.
I know what the information is, because I have an echo printed to the screen.
When I try to execute code using an if statement comparing the content, it doesn't work.
if ($var = "hello")
{
echo "example";
}
The information is retrieved from the body of an e-mail. For example, if the entire body was "hello" and my code read as it does above, "example" never gets echoed to the screen, which of course means that the if statement was false.
Does anyone have any clue as to what I need to do?
***UPDATE***
I have been searching Google, and just a few minutes after I submitted this, I found the solution.
if (strpos($var, "hello")
Sorry if I have wasted anyone's time.
