How can one prevent the content of the previous page from being carried over when redirecting to a new page in PHP?

When redirecting to a new page in PHP, you can prevent the content of the previous page from being carried over by using the `header` function to send a Location header to the new page. This will ensure that only the content of the new page is displayed to the user.

<?php
// Redirect to a new page without carrying over content from the previous page
header("Location: new_page.php");
exit;
?>