nerdexam
Zend

200-550 · Question #97

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

(42 responses)
  • A
    10% (4)
  • B
    74% (31)
  • C
    14% (6)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice