What is the correct syntax for destroying a session in PHP?

When you want to destroy a session in PHP, you can use the session_destroy() function. This function will remove all session data and effectively end the session. It's important to note that you should call session_start() before calling session_destroy() to ensure the session is properly initialized.

<?php
session_start();
session_destroy();
?>