What are best practices for using meta tags in PHP to redirect users to another page?

When using meta tags in PHP to redirect users to another page, it is important to use the "Location" meta tag with the URL of the destination page in the "content" attribute. This will trigger an automatic redirection to the specified page. It is also recommended to include a delay in the redirection to give users a chance to read any messages or notifications before being redirected.

<?php
// Redirect users to another page after a delay
$url = 'https://www.example.com/destination-page.php';
$delay = 5; // 5 seconds delay

echo "<meta http-equiv='refresh' content='$delay;url=$url'>";
?>