how can I do a string check inside a string in php?
<p>Does anyone know how can I do a string check inside a string? </p>

<p>for example:</p>

<pre><code>$variable = "Pensioner (other)";
</code></pre>

<p>If I want to check whether $variable contain the word 'Pensioner', how can I do it in PHP? I have tried the following code in php, but it's always return me false :( </p>

<pre><code>$pos = strripos($variable,"Pensioner");
if($pos) echo "found one";
else echo "not found";
</code></pre>
