nerdexam
Zend

200-550 · Question #55

Before the headers are sent, how can you remove a previously set header?

The correct answer is A. Use the header_remove() function, providing the name of the header. See the full explanation below for the reasoning.

Question

Before the headers are sent, how can you remove a previously set header?

Options

  • AUse the header_remove() function, providing the name of the header
  • BUse the die() function to abort the PHP script
  • CNot possible
  • DUse the headers_list() function, providing the name of the header as the second argument

How the community answered

(14 responses)
  • A
    79% (11)
  • B
    7% (1)
  • C
    14% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice