Detecting advanced boolean search operators in a PHP string
<p>Most of the users of my website are not familiar with how to correctly use advanced search operators.  The following is just one example of what I see in the database:</p>

<p>lavender + burns+</p>

<p>Instead of using +lavender +burns</p>

<p>I'm trying to trigger error messages so that they can correctly learn how to do an advanced search.  I already have an error that appears when they try to use quotes around a single word instead of a phrase.  Now I'm trying to come up with an error that displays when they don't use the + correctly.  My code can detect if there is a plus sign, but I just need some help on how to tell if the + appears right in front of a word or after.</p>
