Unclassified NewsBoard Code Reference

MimeGetHeaderParam function

Find a sub-value (parameter) inside a header's value, i.e.
Content-Type: multipart/mixed; boundary=<...>

function MimeGetHeaderParam ($value, $name, $unq = false);

Parameters:

value
name
unq  –  optional, default: false

Return value:

string value or false

Remarks:

pass it the header value as returned by MimeGetHeaderValue and the parameter name (i.e. "boundary") you want the value to
giving a $name of "" returns the first element of the ";"-splitted array,
i.e. the Content-Type definition itself w/o following parameters

setting $unq = true automatically unquotes parameter value. this is not done recursively

Implementation file: unb_lib/mime.lib.php, line 168

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.