<?php var_dump(http_parse_params("text/html; charset=\"utf8\""));?>
The above example will output:
object(stdClass)#1 (1) { ["params"]=> array(2) { [0]=> string(9) "text/html" [1]=> array(1) { ["charset"]=> string(4) "utf8" } } }