How does setting the value parameter in the setcookie function affect the deletion of cookies in PHP?

Setting the value parameter in the setcookie function to an empty string can be used to delete a cookie in PHP. When the value parameter is set to an empty string, the cookie will be removed from the client's browser because it will expire immediately. This is a simple and effective way to delete cookies in PHP.

// Set the cookie with an empty value to delete it
setcookie('cookie_name', '', time() - 3600, '/');