I want to remove everything(including the comma) from the first comma of a string in php eg.
$print=\"50 days,7 hours\";
should become \"50
$string="50 days,7 hours"; $s = preg_split("/,/",$string); print $s[0];