title: Return the portion of a string before the first occurrence of a character in PHP
body: <p>In PHP, what is the simplest way to return the portion of a string before the first occurrence of a specific character?</p>
  <p>For example, if I have a string...</p>
  <p>&quot;The quick brown foxed jumped over the etc etc.&quot;</p>
  <p>...and I am filtering for a space character (&quot; &quot;), the function would return
  <em>&quot;The&quot;</em>.</p>