- 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()
| Construct | Method |
|---|---|
| Visibility | public |
| Reference | boolean getHeaders() |
| Returned value | Assotiative array of currently set headers |
| Versions | since 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()