title: preg_match all words in a string
body: <p>Looking fo possibility to detect if <code>$string</code> is match all words in <code>$array</code>.
  Words order not known in advance (user typed text).</p>
  
  <pre><code>array(
    'test',
    'shmest',
    'zest',
    'fest',
    'etcest'
  );
  </code></pre>
  
  <p>I undertand that i can:</p>
  
  <pre><code>$is_match = true;
  foreach ($array as $word) {
    if (!strpos($string, $word) === false) {
      $is_match = false;
      break;
    }
  }
  </code></pre>
  
  <p>(Can|Should) i make somethin like above via preg_match[_all]?</p>
  
  <p><strong>EDIT1</strong></p>
  
  <p>Priority is less memory and fast work.</p>
  
  <p>Tested 2 unswers and own above
  <a href="https://eval.in/144266" rel="nofollow">https://eval.in/144266</a>
  so my is fastest</p>
  
  <p>And <code>$string</code> can contain of any symbols </p>