Zend\Mime\Decode::splitHeaderField
split a header field like content type in its different parts
Signature
public function splitHeaderField(string
$field,
[string
$wantedPart = null,
[string
$firstName = '0']] )
Parameters
$field
—
string
- header field
$wantedPart
—
string
- the wanted part, else an array with all parts is returned
$firstName
—
string
- key name for the first part
Returns
- string|array
- wanted part or all parts as array($firstName => firstPart, partname => value)
Errors/Exceptions
-
RuntimeException