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)- A4% (1)
- B8% (2)
- C77% (20)
- D12% (3)
Community Discussion
No community discussion yet for this question.