title: Intelligently parse user search terms in PHP
body: <p>I am in the midst of creating a search service for my PHP website and I was wondering how others have gone about intelligently parsing search terms based on quotation marks (and possibly other symbols in the future). </p>
  
  <p>In others words, the search term <strong>screwdriver hammer</strong> might yield an array of ['screwdriver', 'hammer'], but <strong>"flathead screedriver" hammer</strong> might yield ['flathead screwdriver', 'hammer'].</p>
  
  <p>I know I can accomplish this in a sloppy loop, but I'm sure PHP has something built in to handle this.</p>