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)- A14% (5)
- B6% (2)
- C75% (27)
- D6% (2)
Topics
#headers_sent#cookies#HTTP headers
Community Discussion
No community discussion yet for this question.