7.3. Opt_Output_Http class
7.3.1. getHeaders()
7.3. Opt_Output_Http class
« Previous
7.3.2. render()
Next »

7.3.1. getHeaders()

ConstructMethod
Visibilitypublic
Referenceboolean getHeaders()
Returned valueAssotiative array of currently set headers
Versionssince 2.0.2

Returns an assotiative array of the headers that have been set so far. The header name serves as the array index, and the value contains the header value.

$headers = $output->getHeaders();
if($headers['Content-type'] == 'text/html;charset=utf-8')
{
    echo 'This is text/html';
}
7.3.1. getHeaders()
7.3. Opt_Output_Http class
« Previous
7.3. Opt_Output_Http class
Next »
7.3.2. render()