How can PHP be used to implement an automatic redirection on a website?

To implement an automatic redirection on a website using PHP, you can use the header() function to send a raw HTTP header to the browser, instructing it to redirect to a new page. This can be useful for scenarios such as redirecting users after a form submission or when a specific condition is met.

<?php
// Redirect to a new page after 5 seconds
header("refresh:5;url=destination.php");
?>