Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
The HttpMessage class
PHP Manual

HttpMessage::setHeaders

(PECL pecl_http >= 0.10.0)

HttpMessage::setHeadersSet headers

Description

public void HttpMessage::setHeaders ( array $headers )

Sets new headers.

Parameters

headers

associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message


The HttpMessage class
PHP Manual