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 2 Question 94 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 94
Topic #: 2
[All 200-710 Questions]

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

0/2000 characters
Minna
3 months ago
Header_add? That's not even a thing!
upvoted 0 times
...
Eileen
3 months ago
Surprised that people still confuse these functions!
upvoted 0 times
...
Estrella
3 months ago
No way, it's just B and D!
upvoted 0 times
...
Man
4 months ago
I think C is a valid option too.
upvoted 0 times
...
Sean
4 months ago
Definitely B and D!
upvoted 0 times
...
Melissa
4 months ago
I can't recall `header_add()` or `http_header_set()` being used for setting response codes, but I'm a bit confused about `http_set_status()`.
upvoted 0 times
...
Dell
4 months ago
I feel like I've seen a question like this before, and I think `header()` and `http_response_code()` were the correct answers.
upvoted 0 times
...
Christiane
5 months ago
I'm not so sure about `http_set_status()`, but `http_response_code()` sounds familiar as a function that can be used for this purpose.
upvoted 0 times
...
Leandro
5 months ago
I think I remember that the `header()` function is definitely one of the options for setting the HTTP response code.
upvoted 0 times
...
Jettie
5 months ago
The `header()` function is the one I'm most familiar with for setting the response code. I'll go with that and `http_response_code()` as my two choices.
upvoted 0 times
...
Paris
5 months ago
I'm a bit confused by the options here. I'll need to review my notes on HTTP response codes and PHP functions to figure this one out.
upvoted 0 times
...
Veronica
5 months ago
Ah, I remember learning about the `header()` function in my PHP class. That's definitely one of the correct answers.
upvoted 0 times
...
Christiane
5 months ago
Hmm, I think `http_response_code()` is also a valid option for setting the response code. I'll double-check the documentation to be sure.
upvoted 0 times
...
Caitlin
6 months ago
I'm pretty sure the `header()` function is used to set the HTTP response code, but I'm not sure about the other options.
upvoted 0 times
...
Hermila
6 months ago
I think the answer is D) http_response_code()
upvoted 0 times
...
Shantay
6 months ago
B) header() is the correct function to set the HTTP response code. I use it all the time in my projects.
upvoted 0 times
Corrinne
2 months ago
Both are great for setting response codes.
upvoted 0 times
...
Anabel
3 months ago
D) is also valid! I use it frequently.
upvoted 0 times
...
Vicente
3 months ago
What about D) http_response_code()?
upvoted 0 times
...
Vanesa
3 months ago
I agree, B) header() is essential.
upvoted 0 times
...
...

Save Cancel