You want to send an HTTP cookie without URL encoding the cookie value. Which of the following functions will you use?
setrawcookie()
Correct:
setrawcookie()
Explanation: Answer option C is correct.
The setrawcookie() function is used to send an HTTP cookie without URL encoding the cookie value.
Answer option B is incorrect. The setcookie() function sends an HTTP cookie to a client.
Answer option A is incorrect. The headers_sent() function checks if / where the HTTP headers have been sent.
Answer option D is incorrect. The header_list() function returns a list of response headers sent (or ready to send).
Reference: https://www.php.net/manual/en/function.setrawcookie.php