nerdexam
Zend

200-710 · Question #82

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.

Web Features

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

(36 responses)
  • A
    14% (5)
  • B
    6% (2)
  • C
    75% (27)
  • D
    6% (2)

Topics

#headers_sent#cookies#HTTP headers

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice