You can use [man]preg_replace[/man] to replace a hyphen followed by any number of characters, like this:
$newstring = preg_replace("/-.*/","",$oldstring);
"Regular" (actually rather irregular) expression syntax is a bit scary to look at initially but it's something you get used to.