title: Check if string contains a value in 2 arrays
body: <p>I have 2 arrays and 1 string.
  I'm trying to detect if a string contains at least one value stored in each array.</p>
  <pre><code>$array1 = array('night', 'morning', 'afternoon');
  $array2 = array('robert','david','justin');
  $string ='robert read a book this morning';
  </code></pre>
  <p>my code:</p>
  <pre><code>if (strstr($string, $array1) &amp;&amp; strstr($string, $array2)){
      echo &quot;Match found&quot;;}else{ echo &quot;Not found&quot;;}
  </code></pre>
  <p>Is there a right way of doing things?</p>