Zend
200-530 · Question #461
You want to check whether the header has already been sent or not. Which of the following code segments will you use to accomplish the task?
The correct answer is C. !in_array("Location: $url", headers_list()). See the full explanation below for the reasoning.
Question
You want to check whether the header has already been sent or not. Which of the following code segments will you use to accomplish the task?
Options
- Aheaders_sent ([ string &$file [, int &$line ]] )
- Bheader_sent(true)
- C!in_array("Location: $url", headers_list())
- D!header_sent(true)
How the community answered
(37 responses)- A5% (2)
- B8% (3)
- C70% (26)
- D16% (6)
Community Discussion
No community discussion yet for this question.