MIME :: mixed isset_header ( string headers, string name [, string value ] )
Return boolean FALSE or STRING header name value. (Search) Header string name and string value are case insensitive (i.e. not case sensitive). (Find) The return header string value is case sensitive and is the first occurred. Example:

$h = 'Received: by with SMTP id z5mr1680x48fgx;'."\r\n\t".
     'Sat, 03 Nov 2007 05:33:29 -0700 (PDT)'."\r\n".
     'Received: from SMTP.Domain.net'."\r\n".
     'Content-Type: text/plain; charset="utf-8"';

// verify if "Content-Type" name header is set
$r = MIME::isset_header($h, 'Content-Type') or die('can not find');
// or, verify if "Received" name header is set and have "from smtp.domain.net" value
// $r = MIME::isset_header($h, 'received', 'from smtp.domain.net') or die('can not find');

// print result
echo $r;

See Also: MIME::split_header(), MIME::decode_header() [ Comments ] Last update: Sunday, November 11, 2007