What potential pitfalls should be considered when using a Meta-Refresh in PHP?

When using a Meta-Refresh in PHP, potential pitfalls to consider include the fact that it relies on client-side redirection, which may not be reliable or secure. It also may not be accessible to users who have disabled JavaScript or have browser settings that prevent automatic redirection. To address these issues, consider using server-side redirection methods like header() function in PHP, which is more reliable and secure.

<?php
// Server-side redirection using header() function
header("Location: https://www.example.com");
exit;
?>