Multiple choice technology web technology

The function setcookie( ) is used to

  1. Enable or disable cookie support

  2. Declare cookie variables

  3. Store data in cookie variable

  4. All of above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

setcookie() is used to send a cookie to the browser, storing data in a cookie variable. Option A is incorrect because it doesn't enable/disable cookie support - that's a browser/php.ini setting. Option B is wrong because it doesn't just declare variables - it actually sets cookie values. Option D is too broad.