PHP funkce headers_sent()
Dostupnost ve verzích: PHP 4.0
Checks if or where headers have been sent
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$file |
string |
null, | If the optional file and line parameters are set, headers_sent will put the PHP source file name and line number where output started in the file and line variables. |
$line |
int |
null | The line number where the output started. |
Návratové hodnoty
bool
headers_sent will return false if no HTTP headers have already been sent or true otherwise.