if($var == %info%) { echo 'this works'; } //if the variable contains the words info in it echo this works.
<?php$hayStack = "The needle lies in the haystack";if (strpos($hayStack, "needle")) { echo "Word exists in that string!";} else { echo "Word doesn't exist in that string.";} ?>