remove everything after first comma from string in php
<p>I want to remove everything(including the comma) from the first comma of a string in php
eg.</p>

<pre><code>$print="50 days,7 hours";
</code></pre>

<p>should become
"50 days "</p>
