if it always starts with Content-Type: , then you can use substr(). e.g.
$string = substr($string, 15);
that will chop off the first 15 characters, and will leave you with text/html .
then you can use trim($string) to remove the white-space at the end.