nerdexam
Zend

200-710 · Question #121

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

The correct answer is B. header() D. http_response_code(). See the full explanation below for the reasoning.

Question

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

Options

  • Aheader_add()
  • Bheader()
  • Chttp_set_status()
  • Dhttp_response_code()
  • Ehttp_header_set()

How the community answered

(28 responses)
  • A
    18% (5)
  • B
    71% (20)
  • C
    7% (2)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice