What is the purpose of using a meta refresh tag in PHP?

The meta refresh tag in PHP is used to automatically redirect users to a different page after a specified amount of time. This can be useful for redirecting users to a different page after a form submission or for creating a timed redirect to a different page.

<?php
// Redirect to a different page after 5 seconds
echo '<meta http-equiv="refresh" content="5;url=destination_page.php">';
?>