+1 vote
in PHP by
Which of the following function is used to set cookie in PHP?

a) createcookie()

b) makecookie()

c) setcookie()

d) None of the above

1 Answer

0 votes
by

(c) setcookie()

Description: PHP cookie is a small piece of information that is stored at client browser. It is used to recognize the user. PHP setcookie() function is used to set cookie with HTTP response. Once the cookie is set, you can access it by the $_COOKIE superglobal variable.

...