title: Remove portion of a string after a certain character
body: <p>I'm just wondering how I could remove everything after a certain substring in PHP</p>
  
  <p>ex:</p>
  
  <pre><code>Posted On April 6th By Some Dude
  </code></pre>
  
  <p>I'd like to have it so that it removes all the text including, and after, the sub string "By"</p>
  
  <p>Thanks</p>