title: How to remove anything in a string after "-"?
body: <p>This is the example of my string.</p>
  
  <pre><code>$x = "John Chio - Guy";
  $y = "Kelly Chua - Woman";
  </code></pre>
  
  <p>I need the pattern for the reg replace.</p>
  
  <pre><code>$pattern = ??
  $x = preg_replace($pattern, '', $x); 
  </code></pre>
  
  <p>Thanks</p>