title: How to Check if a specified string occurs after a particular string in PHP?
body: <p>I have a title. I want to check if a specified string occurs after/before particular string in php.</p>
  
  <p>for ex,</p>
  
  <pre><code>Title = Director, Employee Representative
  </code></pre>
  
  <p>I want to check if the word <code>Employee</code> occurs after/before <code>Representative</code> in the title.
  If the title contains <code>Representative</code>, check if word prior/next to the word is <code>Employee</code></p>
  
  <p>How to do that?</p>