What is the common method to delete a cookie in PHP?

To delete a cookie in PHP, you need to set the cookie with an expiration time in the past. This will prompt the browser to remove the cookie from its storage.

// Set the cookie with an expiration time in the past to delete it
setcookie("cookie_name", "", time() - 3600, "/");