nerdexam
Zend

200-550 · Question #56

How can you determine whether a PHP script has already sent cookies to the client?

The correct answer is C. Use the headers_sent() function. See the full explanation below for the reasoning.

Question

How can you determine whether a PHP script has already sent cookies to the client?

Options

  • AUse $_COOKIE
  • BUse the getcookie() function
  • CUse the headers_sent() function
  • DUse JavaScript to send a second HTTP request

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    77% (20)
  • D
    12% (3)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice