I'm trying to get a strposstring variable $stringfor the phrase βtestβ to search , and if it does not contain βtestβ, another variable is $changeredefined as $string2(where $changeit was defined earlier)
if (strpos($string, 'test') == false) {
$change = $string2;
break;
}
But, unfortunately, this does not work.
Is there a mistake in the above?
Thanks.
source
share