nerdexam
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)
  • A
    5% (2)
  • B
    8% (3)
  • C
    70% (26)
  • D
    16% (6)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice