title: Fastest PHP Routine To Match Words
body: <p>What is the fastest way in PHP to take a keyword list and match it to a search result (like an array of titles) for <strong>all words</strong>?</p>
  
  <p>For instance, if my keyword phrase is "<strong>great leather shoes</strong>", then the following titles <em>would be</em> a match...</p>
  
  <ul>
  <li>Get Some Really <strong>Great Leather Shoes</strong></li>
  <li><strong>Leather Shoes</strong> Are <strong>Great</strong></li>
  <li><strong>Great</strong> Day! Those Are Some Cool <strong>Leather Shoes</strong>!</li>
  <li><strong>Shoes</strong>, Made of <strong>Leather</strong>, Can Be <strong>Great</strong></li>
  </ul>
  
  <p>...while these <em>would not be</em> a match:</p>
  
  <ul>
  <li><strong>Leather Shoes</strong> on Sale Today!</li>
  <li>You'll Love These <strong>Leather Shoes</strong> Greatly</li>
  <li><strong>Great Shoes</strong> Don't Come Cheap</li>
  </ul>
  
  <p>I imagine there's some trick with array functions or a RegEx (Regular Expression) to achieve this rapidly.</p>