How can you delete a cookie in PHP?

To delete a cookie in PHP, you can set the cookie's expiration time to a past time. This will effectively remove the cookie from the user's browser.

// Set the cookie's expiration time to a past time
setcookie("cookie_name", "", time() - 3600, "/");