1 # mixed http\Message::getHeader(string $header[, string $into_class = NULL])
3 Retrieve a single header, optionally hydrated into a http\Header extending class.
9 * Optional string $into_class = NULL
10 The name of a class extending http\Header.
14 * mixed, the header value if $into_class is NULL.
15 * http\Header, descendant.
19 * E_INVALID_PARAM, if $into_class is not a descendant of http\Header.
24 class hdr extends http\Header {
25 function __construct($name, $value) {
26 var_dump($name, $value);
27 parent::__construct($name, $value);
31 $msg = new http\Message("Foo: bar");
32 $msg->getHeader("foo", "hdr");