What are the potential pitfalls of using the meta refresh method for redirection in PHP compared to the header() function?

Using the meta refresh method for redirection in PHP can cause slower page loading times and may not be as reliable as using the header() function. To avoid these pitfalls, it is recommended to use the header() function for redirection in PHP.

<?php
// Redirect using the header() function
header("Location: new_page.php");
exit;
?>