can strstr() be used to look for 2 separate key words within a sentence?
<p>can strstr() be used to look for 2 separate key words within a sentence?</p>

<p>ex:</p>

<pre><code>$sentence = 'the quick brown fox';

if (strstr($sentence, 'brown') &amp;&amp; strstr($sentence, 'fox')) {
   echo 'YES';
} else {
   echo 'NO';
}
</code></pre>
