title: How to extract every word before '-' with php
body: <p>How can I exrtact every word before <code>-</code>. What I mean is if I have</p>
  
  <pre><code>word - word word
  or
  word word2 - word word
  or 
  word word2 word3 - word word
  </code></pre>
  
  <p>I need every word before <code>-</code></p>