The setcookie() function in PHP sends a cookie to the browser, storing data in a cookie variable that will be sent back with subsequent requests. It does not declare variables (that's just variable assignment) nor does it enable/disable cookie support (that's controlled by browser settings).