nerdexam
Zend

200-710 · Question #81

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.

Web Features

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

(58 responses)
  • A
    71% (41)
  • B
    17% (10)
  • C
    9% (5)
  • D
    3% (2)

Topics

#header_remove#HTTP headers#header manipulation

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice