Zend\Mime\Decode::splitContentType
split a content type in its different parts
Signature
public function splitContentType(string
$type,
[string
$wantedPart = null] )
Parameters
$type
— string- content-type
$wantedPart
— string- the wanted part, else an array with all parts is returned
Returns
- string|array
- wanted part or all parts as array('type' => content-type, partname => value)