Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 8 Question 106 Discussion

Posted by Norah on Jun 19, 2026 at 11:55 AM

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

Suggested Answer: C

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
VA
Vallie 3 months ago
D seems off. JavaScript isn't needed for this check.
MA
Matthew 3 months ago
I prefer A. $_COOKIE shows what cookies are available.
BE
Ben 3 months ago
I think C is the best choice. headers_sent() checks if headers are sent.
NA
Nada 3 months ago
I’m not convinced about C. What if there’s a better method?
PA
Pansy 3 months ago
Wait, can you really use JavaScript for this? Seems odd.
BA
Barney 4 months ago
Totally agree with C! It's the only way to know for sure.
RA
Rachael 4 months ago
I thought A was the way to go. $_COOKIE just reads them, right?
KE
Kenneth 4 months ago
C is the right answer! headers_sent() checks if cookies were sent.
MI
Mignon 4 months ago
I vaguely recall that using JavaScript for this kind of check isn't standard practice, so I doubt D is correct.
JE
Jerlene 4 months ago
I thought $_COOKIE was just for retrieving cookies, not checking if they were sent. This is confusing!
MA
Madalyn 4 months ago
I remember practicing a question about checking if headers were sent, so I feel like C might be the right choice.
CA
Carole 5 months ago
I think we talked about the headers_sent() function in class, but I'm not entirely sure how it relates to cookies.
0/2000 characters

Save Cancel