title: Remove everything from the first occurrence of a character to the end of a string in PHP
body: <p>I want to remove everything (including the comma) from the first comma of a string in PHP.</p>
  <p>For example,</p>
  <pre><code>$print = &quot;50 days,7 hours&quot;;
  </code></pre>
  <p>should become</p>
  <pre class="lang-none prettyprint-override"><code>50 days
  </code></pre>